Subversion Repositories livecd

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
393 beyerleu 1
 
2
lang en_GB.UTF-8
3
keyboard us
4
timezone Europe/Brussels --isUtc
5
auth --useshadow --enablemd5
6
selinux --enforcing
7
firewall --enabled --service=mdns
8
xconfig --startxonboot
9
part / --size 8192 --fstype ext4
10
services --enabled=NetworkManager --disabled=network,sshd
11
 
12
 
13
# Root password
14
rootpw --iscrypted $6$K2nKf02kVKG68960$OywvoaViphSITuro/liKvCj7Pm/CH/xqzz/lsoXyaKSR1lYf0vHAqSUc483a9MCCBkIwfr/hNMfqwxqVO0OEg1
15
 
398 beyerleu 16
# Workaround for the grubby issue on live media (see https://bugzilla.redhat.com/show_bug.cgi?id=1153410)
393 beyerleu 17
# SL repositories (fastbugs enabled per default) 
398 beyerleu 18
repo --name=base      --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/os/               --excludepkgs=grubby
19
repo --name=security  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/updates/security/ --excludepkgs=grubby
20
repo --name=fastbugs  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/updates/fastbugs/ --excludepkgs=grubby
399 beyerleu 21
repo --name=grubby    --baseurl=http://ftp.scientificlinux.org/linux/scientific/7.0/$basearch/os/                    --includepkgs=grubby
393 beyerleu 22
 
23
# or use a mirror close to you
398 beyerleu 24
#repo --name=base      --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/os/               --excludepkgs=grubby
25
#repo --name=security  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/updates/security/ --excludepkgs=grubby
26
#repo --name=fastbugs  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/updates/fastbugs/ --excludepkgs=grubby
399 beyerleu 27
#repo --name=grubby    --baseurl=http://ftp.scientificlinux.org/linux/scientific/7.0/$basearch/os/                       --includepkgs=grubby
393 beyerleu 28
 
29
 
30
%packages
31
abattis-cantarell-fonts
32
accountsservice
33
accountsservice-libs
34
acl
35
adwaita-cursor-theme
36
adwaita-gtk2-theme
37
adwaita-gtk3-theme
38
aic94xx-firmware
39
alsa-firmware
40
alsa-lib
41
alsa-tools-firmware
42
anaconda
43
anaconda-widgets
44
at
45
atk
46
atkmm
47
at-spi2-atk
48
at-spi2-core
49
attr
50
audit
51
audit-libs
52
audit-libs-python
53
augeas-libs
54
authconfig
55
avahi
56
avahi-autoipd
57
avahi-glib
58
avahi-gobject
59
avahi-libs
60
avahi-ui-gtk3
61
baobab
62
basesystem
63
bash
64
bash-completion
65
bc
66
bind-libs
67
bind-libs-lite
68
bind-license
69
bind-utils
70
binutils
71
biosdevname
72
blktrace
73
bluez
74
bluez-libs
75
bridge-utils
76
btrfs-progs
77
bzip2
78
bzip2-libs
79
ca-certificates
80
cairo
81
cairo-gobject
82
cairomm
83
caribou
84
caribou-gtk2-module
85
caribou-gtk3-module
86
cdparanoia-libs
87
celt051
88
checkpolicy
89
cheese
90
cheese-libs
91
chkconfig
92
chrony
93
clutter
94
clutter-gst2
95
clutter-gtk
96
cogl
97
colord
98
colord-gtk
99
colord-libs
100
color-filesystem
101
comps-extras
102
control-center
103
control-center-filesystem
104
coreutils
105
cpio
106
cracklib
107
cracklib-dicts
108
crda
109
createrepo
110
cronie
111
cronie-anacron
112
crontabs
113
cryptsetup
114
cryptsetup-libs
115
cryptsetup-python
116
cups-libs
117
cups-pk-helper
118
curl
119
cyrus-sasl-lib
120
cyrus-sasl-plain
121
dbus
122
dbus-glib
123
dbus-libs
124
dbus-python
125
dbus-x11
126
dconf
127
dejavu-fonts-common
128
dejavu-sans-fonts
129
dejavu-sans-mono-fonts
130
dejavu-serif-fonts
131
deltarpm
132
desktop-file-utils
133
device-mapper
134
device-mapper-event
135
device-mapper-event-libs
136
device-mapper-libs
137
device-mapper-multipath
138
device-mapper-multipath-libs
139
device-mapper-persistent-data
140
dhclient
141
dhcp-common
142
dhcp-libs
143
diffutils
144
dmidecode
145
dmraid
146
dmraid-events
147
dnsmasq
148
dosfstools
149
dracut
150
dracut-config-rescue
151
dracut-network
152
dyninst
153
e2fsprogs
154
e2fsprogs-libs
155
ebtables
156
ed
157
elfutils-libelf
158
elfutils-libs
159
emacs-filesystem
160
enchant
161
eog
162
ethtool
163
evince
164
evince-libs
165
evince-nautilus
166
evolution-data-server
167
exempi
168
exiv2-libs
169
expat
170
fcoe-utils
171
file
172
file-libs
173
file-roller
174
file-roller-nautilus
175
filesystem
176
findutils
177
fipscheck
178
fipscheck-lib
179
firefox
180
firewall-config
181
firewalld
182
firstboot
183
flac-libs
184
folks
185
fontconfig
186
fontpackages-filesystem
187
fprintd
188
fprintd-pam
189
freerdp
190
freerdp-libs
191
freerdp-plugins
192
freetype
193
frei0r-plugins
194
fros
195
fuse
196
fuse-libs
197
fxload
198
gamin
199
gavl
200
gawk
201
GConf2
202
gcr
203
gd
204
gdbm
205
gdisk
206
gdk-pixbuf2
207
gdm
208
gdm-libs
209
gedit
210
geoclue
211
gettext
212
gettext-libs
213
ghostscript
214
ghostscript-fonts
215
giflib
216
gjs
217
glade-libs
218
glib2
219
glibc
220
glibc-common
221
glibmm24
222
glib-networking
223
glusterfs-api
224
glusterfs-libs
225
glx-utils
226
gmp
227
gnome-bluetooth
228
gnome-bluetooth-libs
229
gnome-calculator
230
gnome-classic-session
231
gnome-clocks
232
gnome-color-manager
233
gnome-contacts
234
gnome-desktop3
235
gnome-dictionary
236
gnome-disk-utility
237
gnome-documents
238
gnome-font-viewer
239
gnome-icon-theme
240
gnome-icon-theme-extras
241
gnome-icon-theme-legacy
242
gnome-icon-theme-symbolic
243
gnome-keyring
244
gnome-keyring-pam
245
gnome-menus
246
gnome-online-accounts
247
gnome-packagekit
248
gnome-python2
249
gnome-python2-bonobo
250
gnome-python2-canvas
251
gnome-python2-gnome
252
gnome-python2-gnomevfs
253
gnome-screenshot
254
gnome-session
255
gnome-session-xsession
256
gnome-settings-daemon
257
gnome-settings-daemon-updates
258
gnome-shell
259
gnome-shell-extension-alternate-tab
260
gnome-shell-extension-apps-menu
261
gnome-shell-extension-common
262
gnome-shell-extension-launch-new-instance
263
gnome-shell-extension-places-menu
264
gnome-shell-extension-window-list
265
gnome-system-log
266
gnome-system-monitor
267
gnome-terminal
268
gnome-themes-standard
269
gnome-tweak-tool
270
gnome-user-docs
271
gnome-vfs2
272
gnome-video-effects
273
gnu-free-fonts-common
274
gnu-free-mono-fonts
275
gnu-free-sans-fonts
276
gnu-free-serif-fonts
277
gnupg2
278
gnutls
279
gobject-introspection
280
google-crosextra-caladea-fonts
281
google-crosextra-carlito-fonts
282
gpgme
283
gpm-libs
284
graphite2
285
grep
286
grilo
287
grilo-plugins
288
groff-base
289
grub2
290
grub2-tools
291
grubby
292
gsettings-desktop-schemas
293
gsm
294
gssdp
295
gstreamer1
296
gstreamer1-plugins-bad-free
297
gstreamer1-plugins-base
298
gstreamer1-plugins-good
299
gtk2
300
gtk2-immodule-xim
301
gtk3
302
gtk3-immodule-xim
303
gtkmm30
304
gtksourceview3
305
gtk-vnc2
306
gucharmap
307
gupnp
308
gupnp-av
309
gvfs
310
gvfs-afc
311
gvfs-afp
312
gvfs-archive
313
gvfs-fuse
314
gvfs-goa
315
gvfs-gphoto2
316
gvfs-mtp
317
gvfs-smb
318
gvnc
319
gzip
320
hardlink
321
harfbuzz
322
harfbuzz-icu
323
hicolor-icon-theme
324
hostname
325
hplip-common
326
hunspell
327
hunspell-en
328
hunspell-en-GB
329
hunspell-en-US
330
hwdata
331
ibus
332
ibus-chewing
333
ibus-gtk2
334
ibus-gtk3
335
ibus-hangul
336
ibus-libs
337
ibus-m17n
338
ibus-rawcode
339
ibus-sayura
340
ibus-setup
341
ibus-table
342
ibus-table-chinese
343
imsettings
344
imsettings-gsettings
345
imsettings-libs
346
info
347
initial-setup
348
initscripts
349
iproute
350
iprutils
351
iptables
352
iputils
353
irqbalance
354
iscsi-initiator-utils
355
iscsi-initiator-utils-iscsiuio
356
iso-codes
357
isomd5sum
358
ivtv-firmware
359
iw
360
iwl1000-firmware
361
iwl100-firmware
362
iwl105-firmware
363
iwl135-firmware
364
iwl2000-firmware
365
iwl2030-firmware
366
iwl3160-firmware
367
iwl3945-firmware
368
iwl4965-firmware
369
iwl5000-firmware
370
iwl5150-firmware
371
iwl6000-firmware
372
iwl6000g2a-firmware
373
iwl6000g2b-firmware
374
iwl6050-firmware
375
iwl7260-firmware
376
jansson
377
jasper-libs
378
jbigkit-libs
379
jomolhari-fonts
380
js
381
json-c
382
json-glib
383
kbd
384
kbd-misc
385
kernel
386
kernel-tools
387
kernel-tools-libs
388
kexec-tools
389
keybinder3
390
keyutils-libs
391
khmeros-base-fonts
392
khmeros-fonts-common
393
kmod
394
kmod-libs
395
kpartx
396
kpatch
397
krb5-libs
398
langtable
399
langtable-data
400
langtable-python
401
lcms2
402
ldns
403
ledmon
404
less
405
libacl
406
libaio
407
libarchive
408
libart_lgpl
409
libassuan
410
libasyncns
411
libatasmart
412
libattr
413
libavc1394
414
libblkid
415
libbluray
416
libbonobo
417
libbonoboui
418
libcacard
419
libcanberra
420
libcanberra-gtk2
421
libcanberra-gtk3
422
libcap
423
libcap-ng
424
libcdio
425
libcdio-paranoia
426
libcgroup
427
libchewing
428
libcom_err
429
libconfig
430
libcroco
431
libcurl
432
libdaemon
433
libdb
434
libdb-utils
435
libdmapsharing
436
libdmx
437
libdrm
438
libdv
439
libdvdnav
440
libdvdread
441
libdwarf
442
libedit
443
liberation-fonts-common
444
liberation-mono-fonts
445
liberation-sans-fonts
446
liberation-serif-fonts
447
libestr
448
libevent
449
libexif
450
libffi
451
libfontenc
452
libfprint
453
libgcc
454
libgcrypt
455
libgdata
456
libgdither
457
libgee
458
libgee06
459
libglade2
460
libgnome
461
libgnomecanvas
462
libgnomekbd
463
libgnome-keyring
464
libgnomeui
465
libgomp
466
libgpg-error
467
libgphoto2
468
libgsf
469
libgtop2
470
libgudev1
471
libgusb
472
libgweather
473
libgxps
474
libhangul
475
libhbaapi
476
libhbalinux
477
libical
478
libICE
479
libicu
480
libIDL
481
libidn
482
libiec61883
483
libieee1284
484
libimobiledevice
485
libiptcdata
486
libiscsi
487
libjpeg-turbo
488
libldb
489
libmnl
490
libmodman
491
libmount
492
libmtp
493
libmusicbrainz5
494
libndp
495
libnetfilter_conntrack
496
libnfnetlink
497
libnl
498
libnl3
499
libnl3-cli
500
libnm-gtk
501
libnotify
502
liboauth
503
libogg
504
libosinfo
505
libpcap
506
libpciaccess
507
libpeas
508
libpipeline
509
libplist
510
libpng
511
libproxy
512
libproxy-mozjs
513
libpwquality
514
libquvi
515
libquvi-scripts
516
libraw1394
517
libreport
518
libreport-anaconda
519
libreport-cli
520
libreport-filesystem
521
libreport-gtk
522
libreport-plugin-bugzilla
523
libreport-plugin-mailx
524
libreport-plugin-reportuploader
525
libreport-plugin-rhtsupport
526
libreport-python
527
libreport-rhel-anaconda-bugzilla
528
libreport-web
529
libreswan
530
librsvg2
531
libsamplerate
532
libsecret
533
libselinux
534
libselinux-python
535
libselinux-utils
536
libsemanage
537
libsemanage-python
538
libsepol
539
libshout
540
libsigc++20
541
libSM
542
libsmbclient
543
libsndfile
544
libsoup
545
libspectre
546
libss
547
libssh2
548
libstdc++
549
libstoragemgmt
550
libstoragemgmt-python
551
libsysfs
552
libtalloc
553
libtar
554
libtasn1
555
libtdb
556
libteam
557
libtevent
558
libthai
559
libtheora
560
libtiff
561
libtool-ltdl
562
libudisks2
563
libunistring
564
libusb
565
libusbx
566
libuser
567
libuser-python
568
libutempter
569
libuuid
570
libv4l
571
libverto
572
libvisual
573
libvorbis
574
libvpx
575
libwacom
576
libwacom-data
577
libwbclient
578
libwebp
579
libwnck3
580
libX11
581
libX11-common
582
libXau
583
libxcb
584
libXcomposite
585
libXcursor
586
libXdamage
587
libXdmcp
588
libXevie
589
libXext
590
libXfixes
591
libXfont
592
libXft
593
libXi
594
libXinerama
595
libxkbfile
596
libxklavier
597
libxml2
598
libxml2-python
599
libXmu
600
libXpm
601
libXrandr
602
libXrender
603
libXres
604
libxslt
605
libXt
606
libXtst
607
libXv
608
libXvMC
609
libXxf86dga
610
libXxf86misc
611
libXxf86vm
612
libzapojit
613
linuxconsoletools
614
linux-firmware
615
lklug-fonts
616
lldpad
617
lm_sensors-libs
618
lockdev
619
logrotate
620
lohit-assamese-fonts
621
lohit-bengali-fonts
622
lohit-devanagari-fonts
623
lohit-gujarati-fonts
624
lohit-kannada-fonts
625
lohit-malayalam-fonts
626
lohit-marathi-fonts
627
lohit-nepali-fonts
628
lohit-oriya-fonts
629
lohit-punjabi-fonts
630
lohit-tamil-fonts
631
lohit-telugu-fonts
632
lsof
633
lua
634
lvm2
635
lvm2-libs
636
lzo
637
m17n-contrib
638
m17n-db
639
m17n-lib
640
m2crypto
641
madan-fonts
642
mailx
643
make
644
man-db
645
man-pages
646
man-pages-overrides
647
mariadb-libs
648
marisa
649
mdadm
650
mesa-dri-drivers
651
mesa-filesystem
652
mesa-libEGL
653
mesa-libgbm
654
mesa-libGL
655
mesa-libglapi
656
mesa-libxatracker
657
mesa-private-llvm
658
metacity
659
microcode_ctl
660
mlocate
661
mobile-broadband-provider-info
662
ModemManager-glib
663
mousetweaks
664
mozilla-filesystem
665
mozjs17
666
mtdev
667
mtools
668
mtr
669
mutter
670
nano
671
nautilus
672
nautilus-extensions
673
nautilus-open-terminal
674
nautilus-sendto
675
ncurses
676
ncurses-base
677
ncurses-libs
678
neon
679
net-snmp-libs
680
nettle
681
net-tools
682
NetworkManager
683
NetworkManager-config-server
684
NetworkManager-glib
685
NetworkManager-libreswan
686
NetworkManager-tui
687
newt
688
newt-python
689
nm-connection-editor
690
nspr
691
nss
692
nss-softokn
693
nss-softokn-freebl
694
nss-sysinit
695
nss-tools
696
nss-util
697
ntpdate
698
ntsysv
699
numactl-libs
700
obexd
701
oddjob
702
oddjob-mkhomedir
703
openjpeg-libs
704
openldap
705
openssh
706
openssh-clients
707
openssh-server
708
openssl
709
openssl-libs
710
opus
711
ORBit2
712
orc
713
os-prober
714
overpass-fonts
715
p11-kit
716
p11-kit-trust
717
PackageKit
718
PackageKit-command-not-found
719
PackageKit-device-rebind
720
PackageKit-glib
721
PackageKit-gtk3-module
722
PackageKit-yum
723
pakchois
724
paktype-naskh-basic-fonts
725
pam
726
pango
727
pangomm
728
paratype-pt-sans-fonts
729
parted
730
passwd
398 beyerleu 731
patch
393 beyerleu 732
pciutils
733
pciutils-libs
734
pcre
735
pcsc-lite-libs
736
perl
737
perl-Carp
738
perl-constant
739
perl-Encode
740
perl-Exporter
741
perl-File-Path
742
perl-File-Temp
743
perl-Filter
744
perl-Getopt-Long
745
perl-HTTP-Tiny
746
perl-libs
747
perl-macros
748
perl-parent
749
perl-PathTools
750
perl-Pod-Escapes
751
perl-podlators
752
perl-Pod-Perldoc
753
perl-Pod-Simple
754
perl-Pod-Usage
755
perl-Scalar-List-Utils
756
perl-Socket
757
perl-Storable
758
perl-Text-ParseWords
759
perl-threads
760
perl-threads-shared
761
perl-Time-Local
762
pinentry
763
pinentry-gtk
764
pinfo
765
pixman
766
pkgconfig
767
plymouth
768
plymouth-core-libs
769
plymouth-graphics-libs
770
plymouth-plugin-label
771
plymouth-plugin-two-step
772
plymouth-scripts
773
plymouth-system-theme
774
plymouth-theme-charge
775
pm-utils
776
policycoreutils
777
policycoreutils-python
778
polkit
779
polkit-pkla-compat
780
poppler
781
poppler-data
782
poppler-glib
783
popt
784
postfix
785
ppp
786
procps-ng
787
psacct
788
psmisc
789
pth
790
pulseaudio
791
pulseaudio-gdm-hooks
792
pulseaudio-libs
793
pulseaudio-libs-glib2
794
pulseaudio-module-bluetooth
795
pyatspi
796
pycairo
797
pygobject2
798
pygobject3
799
pygobject3-base
800
pygpgme
801
pygtk2
802
pygtk2-libglade
803
pykickstart
804
pyliblzma
805
pyOpenSSL
806
pyorbit
807
pyparted
808
pytalloc
809
python
810
python-backports
811
python-backports-ssl_match_hostname
812
python-blivet
813
python-caribou
814
python-chardet
815
python-configobj
816
python-coverage
817
python-dateutil
818
python-decorator
819
python-deltarpm
820
python-di
821
python-dmidecode
822
python-ethtool
823
python-gudev
824
python-hwdata
825
python-iniparse
826
python-IPy
827
python-kitchen
828
python-libs
829
python-lxml
830
python-meh
831
python-nss
832
python-pwquality
833
python-pyblock
834
python-pycurl
835
python-pyudev
836
python-setuptools
837
python-slip
838
python-slip-dbus
839
python-urlgrabber
840
pytz
841
pyxattr
842
qrencode-libs
843
quota
844
quota-nls
845
rdate
846
readline
847
realmd
848
sl-bookmarks
849
sl-indexhtml
850
sl-logos
851
redhat-menus
852
rest
853
rfkill
854
rng-tools
855
rootfiles
856
rpm
857
rpm-build-libs
858
rpm-libs
859
rpm-python
860
rsync
861
rsyslog
862
rsyslog-mmjsonparse
863
rtkit
864
samba-common
865
samba-libs
866
satyr
867
sbc
868
scl-utils
869
SDL
870
seahorse
871
sed
872
selinux-policy
873
selinux-policy-targeted
874
setools-libs
875
setroubleshoot
876
setroubleshoot-plugins
877
setroubleshoot-server
878
setserial
879
setup
880
setuptool
881
sg3_utils-libs
882
sgpio
883
shadow-utils
884
shared-mime-info
885
sil-abyssinica-fonts
886
sil-nuosu-fonts
887
sil-padauk-fonts
888
slang
889
smartmontools
890
smc-fonts-common
891
smc-meera-fonts
892
snappy
893
sos
894
sound-theme-freedesktop
895
soundtouch
896
speex
897
spice-glib
898
spice-gtk3
899
spice-vdagent
900
sqlite
901
sssd-client
902
startup-notification
903
stix-fonts
904
strace
905
sudo
906
sushi
907
syslinux
908
sysstat
909
system-config-keyboard
910
system-config-keyboard-base
911
systemd
912
systemd-libs
913
systemd-python
914
systemd-sysv
915
systemtap-runtime
916
sysvinit-tools
917
taglib
918
tar
919
tcpdump
920
tcp_wrappers
921
tcp_wrappers-libs
922
tcsh
923
teamd
924
telepathy-filesystem
925
telepathy-glib
926
telepathy-logger
927
thai-scalable-fonts-common
928
thai-scalable-waree-fonts
929
tigervnc-license
930
tigervnc-server-minimal
931
time
932
totem
933
totem-nautilus
934
totem-pl-parser
935
traceroute
936
tracker
937
tuned
938
tzdata
939
ucs-miscfixed-fonts
940
udisks2
941
unbound-libs
942
unzip
943
upower
944
urw-fonts
945
usb_modeswitch
946
usb_modeswitch-data
947
usbmuxd
948
usbredir
949
usbutils
950
usermode
951
usermode-gtk
952
ustr
953
util-linux
954
vim-common
955
vim-enhanced
956
vim-filesystem
957
vim-minimal
958
vinagre
959
vino
960
virt-what
961
vlgothic-fonts
962
vte3
963
wavpack
964
webkitgtk3
965
webrtc-audio-processing
966
wget
967
which
968
words
969
wpa_supplicant
970
wqy-microhei-fonts
971
xcb-util
972
xdg-user-dirs
973
xdg-user-dirs-gtk
974
xdg-utils
975
xfsdump
976
xfsprogs
977
xkeyboard-config
978
xml-common
979
xmlrpc-c
980
xmlrpc-c-client
981
xorg-x11-drivers
982
xorg-x11-drv-ati
983
xorg-x11-drv-dummy
984
xorg-x11-drv-evdev
985
xorg-x11-drv-fbdev
986
xorg-x11-drv-intel
987
xorg-x11-drv-modesetting
988
xorg-x11-drv-nouveau
989
xorg-x11-drv-qxl
990
xorg-x11-drv-synaptics
991
xorg-x11-drv-v4l
992
xorg-x11-drv-vesa
993
xorg-x11-drv-vmmouse
994
xorg-x11-drv-vmware
995
xorg-x11-drv-void
996
xorg-x11-drv-wacom
997
xorg-x11-font-utils
998
xorg-x11-glamor
999
xorg-x11-server-common
1000
xorg-x11-server-utils
1001
xorg-x11-server-Xorg
1002
xorg-x11-utils
1003
xorg-x11-xauth
1004
xorg-x11-xinit
1005
xorg-x11-xkb-utils
1006
xvattr
1007
xz
1008
xz-libs
1009
yajl
1010
yelp
1011
yelp-libs
1012
yelp-xsl
1013
yum
1014
yum-langpacks
1015
yum-metadata-parser
1016
yum-utils
1017
zenity
1018
zip
1019
zlib
1020
 
1021
# for UEFI/Secureboot support
1022
grub2
1023
grub2-efi
1024
efibootmgr
1025
shim
1026
 
1027
 
1028
 
1029
%end
1030
 
1031
%post
1032
# FIXME: it'd be better to get this installed from a package
1033
cat > /etc/rc.d/init.d/livesys << EOF
1034
#!/bin/bash
1035
#
1036
# live: Init script for live image
1037
#
1038
# chkconfig: 345 00 99
1039
# description: Init script for live image.
1040
### BEGIN INIT INFO
1041
# X-Start-Before: display-manager
1042
### END INIT INFO
1043
 
1044
. /etc/init.d/functions
1045
 
1046
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ]; then
1047
    exit 0
1048
fi
1049
 
1050
if [ -e /.liveimg-configured ] ; then
1051
    configdone=1
1052
fi
1053
 
1054
exists() {
1055
    which \$1 >/dev/null 2>&1 || return
1056
    \$*
1057
}
1058
 
1059
# Make sure we don't mangle the hardware clock on shutdown
1060
ln -sf /dev/null /etc/systemd/system/hwclock-save.service
1061
 
1062
livedir="LiveOS"
1063
for arg in \`cat /proc/cmdline\` ; do
1064
  if [ "\${arg##rd.live.dir=}" != "\${arg}" ]; then
1065
    livedir=\${arg##rd.live.dir=}
1066
    return
1067
  fi
1068
  if [ "\${arg##live_dir=}" != "\${arg}" ]; then
1069
    livedir=\${arg##live_dir=}
1070
    return
1071
  fi
1072
done
1073
 
1074
# enable swaps unless requested otherwise
1075
swaps=\`blkid -t TYPE=swap -o device\`
1076
if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then
1077
  for s in \$swaps ; do
1078
    action "Enabling swap partition \$s" swapon \$s
1079
  done
1080
fi
1081
if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /run/initramfs/live/\${livedir}/swap.img ] ; then
1082
  action "Enabling swap file" swapon /run/initramfs/live/\${livedir}/swap.img
1083
fi
1084
 
1085
mountPersistentHome() {
1086
  # support label/uuid
1087
  if [ "\${homedev##LABEL=}" != "\${homedev}" -o "\${homedev##UUID=}" != "\${homedev}" ]; then
1088
    homedev=\`/sbin/blkid -o device -t "\$homedev"\`
1089
  fi
1090
 
1091
  # if we're given a file rather than a blockdev, loopback it
1092
  if [ "\${homedev##mtd}" != "\${homedev}" ]; then
1093
    # mtd devs don't have a block device but get magic-mounted with -t jffs2
1094
    mountopts="-t jffs2"
1095
  elif [ ! -b "\$homedev" ]; then
1096
    loopdev=\`losetup -f\`
1097
    if [ "\${homedev##/run/initramfs/live}" != "\${homedev}" ]; then
1098
      action "Remounting live store r/w" mount -o remount,rw /run/initramfs/live
1099
    fi
1100
    losetup \$loopdev \$homedev
1101
    homedev=\$loopdev
1102
  fi
1103
 
1104
  # if it's encrypted, we need to unlock it
1105
  if [ "\$(/sbin/blkid -s TYPE -o value \$homedev 2>/dev/null)" = "crypto_LUKS" ]; then
1106
    echo
1107
    echo "Setting up encrypted /home device"
1108
    plymouth ask-for-password --command="cryptsetup luksOpen \$homedev EncHome"
1109
    homedev=/dev/mapper/EncHome
1110
  fi
1111
 
1112
  # and finally do the mount
1113
  mount \$mountopts \$homedev /home
1114
  # if we have /home under what's passed for persistent home, then
1115
  # we should make that the real /home.  useful for mtd device on olpc
1116
  if [ -d /home/home ]; then mount --bind /home/home /home ; fi
1117
  [ -x /sbin/restorecon ] && /sbin/restorecon /home
1118
  if [ -d /home/liveuser ]; then USERADDARGS="-M" ; fi
1119
}
1120
 
1121
findPersistentHome() {
1122
  for arg in \`cat /proc/cmdline\` ; do
1123
    if [ "\${arg##persistenthome=}" != "\${arg}" ]; then
1124
      homedev=\${arg##persistenthome=}
1125
      return
1126
    fi
1127
  done
1128
}
1129
 
1130
if strstr "\`cat /proc/cmdline\`" persistenthome= ; then
1131
  findPersistentHome
1132
elif [ -e /run/initramfs/live/\${livedir}/home.img ]; then
1133
  homedev=/run/initramfs/live/\${livedir}/home.img
1134
fi
1135
 
1136
# if we have a persistent /home, then we want to go ahead and mount it
1137
if ! strstr "\`cat /proc/cmdline\`" nopersistenthome && [ -n "\$homedev" ] ; then
1138
  action "Mounting persistent /home" mountPersistentHome
1139
fi
1140
 
1141
# make it so that we don't do writing to the overlay for things which
1142
# are just tmpdirs/caches
1143
mount -t tmpfs -o mode=0755 varcacheyum /var/cache/yum
1144
mount -t tmpfs vartmp /var/tmp
1145
[ -x /sbin/restorecon ] && /sbin/restorecon /var/cache/yum /var/tmp >/dev/null 2>&1
1146
 
1147
if [ -n "\$configdone" ]; then
1148
  exit 0
1149
fi
1150
 
1151
# add live user with no passwd
1152
action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser
1153
passwd -d liveuser > /dev/null
1154
usermod -aG wheel liveuser > /dev/null
1155
 
1156
# Remove root password lock
1157
passwd -d root > /dev/null
1158
 
1159
# turn off firstboot for livecd boots
1160
systemctl --no-reload disable firstboot-text.service 2> /dev/null || :
1161
systemctl --no-reload disable firstboot-graphical.service 2> /dev/null || :
1162
systemctl stop firstboot-text.service 2> /dev/null || :
1163
systemctl stop firstboot-graphical.service 2> /dev/null || :
1164
 
1165
# don't use prelink on a running live image
1166
sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || :
1167
 
1168
# turn off mdmonitor by default
1169
systemctl --no-reload disable mdmonitor.service 2> /dev/null || :
1170
systemctl --no-reload disable mdmonitor-takeover.service 2> /dev/null || :
1171
systemctl stop mdmonitor.service 2> /dev/null || :
1172
systemctl stop mdmonitor-takeover.service 2> /dev/null || :
1173
 
1174
# don't enable the gnome-settings-daemon packagekit plugin
1175
gsettings set org.gnome.settings-daemon.plugins.updates active 'false' || :
1176
 
1177
# don't start cron/at as they tend to spawn things which are
1178
# disk intensive that are painful on a live image
1179
systemctl --no-reload disable crond.service 2> /dev/null || :
1180
systemctl --no-reload disable atd.service 2> /dev/null || :
1181
systemctl stop crond.service 2> /dev/null || :
1182
systemctl stop atd.service 2> /dev/null || :
1183
 
396 beyerleu 1184
# disable kdump service
1185
systemctl --no-reload disable kdump.service 2> /dev/null || :
1186
systemctl stop kdump.service 2> /dev/null || :
1187
 
393 beyerleu 1188
# Mark things as configured
1189
touch /.liveimg-configured
1190
 
1191
# add static hostname to work around xauth bug
1192
# https://bugzilla.redhat.com/show_bug.cgi?id=679486
1193
echo "localhost" > /etc/hostname
1194
 
1195
# Fixing the lang install issue when other lang than English is selected . See http://bugs.centos.org/view.php?id=7217
1196
/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig
1197
/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py
1198
 
1199
EOF
1200
 
398 beyerleu 1201
# Patching livepayload too https://bugzilla.redhat.com/show_bug.cgi?id=1100504
1202
cat > /tmp/livepayload.patch <<EOF
1203
--- /usr/lib64/python2.7/site-packages/pyanaconda/packaging/livepayload.py.orig
1204
+++ /usr/lib64/python2.7/site-packages/pyanaconda/packaging/livepayload.py
1205
@@ -152,6 +152,13 @@
1206
             self.pct = 100
1207
         threadMgr.wait(THREAD_LIVE_PROGRESS)
1208
 
1209
+        # Live needs to create the rescue image before bootloader is written
1210
+        for kernel in self.kernelVersionList:
1211
+            log.info("Generating rescue image for %s", kernel)
1212
+            iutil.execInSysroot("new-kernel-pkg",
1213
+                                ["--rpmposttrans", kernel])
1214
+
1215
+
1216
     def postInstall(self):
1217
         """ Perform post-installation tasks. """
1218
         progressQ.send_message(_("Performing post-installation setup tasks"))
1219
@@ -159,12 +166,6 @@
1220
 
1221
         super(LiveImagePayload, self).postInstall()
1222
 
1223
-        # Live needs to create the rescue image before bootloader is written
1224
-        for kernel in self.kernelVersionList:
1225
-            log.info("Generating rescue image for %s", kernel)
1226
-            iutil.execInSysroot("new-kernel-pkg",
1227
-                                ["--rpmposttrans", kernel])
1228
-
1229
         # Make sure the new system has a machine-id, it won't boot without it
1230
         if not os.path.exists(iutil.getSysroot()+"/etc/machine-id"):
1231
             iutil.execInSysroot("systemd-machine-id-setup", [])
1232
 
1233
EOF
1234
 
1235
patch -p0 /usr/lib64/python2.7/site-packages/pyanaconda/packaging/livepayload.py /tmp/livepayload.patch 
1236
 
393 beyerleu 1237
# bah, hal starts way too late
1238
cat > /etc/rc.d/init.d/livesys-late << EOF
1239
#!/bin/bash
1240
#
1241
# live: Late init script for live image
1242
#
1243
# chkconfig: 345 99 01
1244
# description: Late init script for live image.
1245
 
1246
. /etc/init.d/functions
1247
 
1248
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
1249
    exit 0
1250
fi
1251
 
1252
exists() {
1253
    which \$1 >/dev/null 2>&1 || return
1254
    \$*
1255
}
1256
 
1257
touch /.liveimg-late-configured
1258
 
1259
# read some variables out of /proc/cmdline
1260
for o in \`cat /proc/cmdline\` ; do
1261
    case \$o in
1262
    ks=*)
1263
        ks="--kickstart=\${o#ks=}"
1264
        ;;
1265
    xdriver=*)
1266
        xdriver="\${o#xdriver=}"
1267
        ;;
1268
    esac
1269
done
1270
 
1271
# if liveinst or textinst is given, start anaconda
1272
if strstr "\`cat /proc/cmdline\`" liveinst ; then
1273
   plymouth --quit
1274
   /usr/sbin/liveinst \$ks
1275
fi
1276
if strstr "\`cat /proc/cmdline\`" textinst ; then
1277
   plymouth --quit
1278
   /usr/sbin/liveinst --text \$ks
1279
fi
1280
 
1281
# configure X, allowing user to override xdriver
1282
if [ -n "\$xdriver" ]; then
1283
   cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
1284
Section "Device"
1285
	Identifier	"Videocard0"
1286
	Driver	"\$xdriver"
1287
EndSection
1288
FOE
1289
fi
1290
 
1291
EOF
1292
 
1293
chmod 755 /etc/rc.d/init.d/livesys
1294
/sbin/restorecon /etc/rc.d/init.d/livesys
1295
/sbin/chkconfig --add livesys
1296
 
1297
chmod 755 /etc/rc.d/init.d/livesys-late
1298
/sbin/restorecon /etc/rc.d/init.d/livesys-late
1299
/sbin/chkconfig --add livesys-late
1300
 
1301
# enable tmpfs for /tmp
1302
systemctl enable tmp.mount
1303
 
1304
# work around for poor key import UI in PackageKit
1305
rm -f /var/lib/rpm/__db*
1306
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
1307
basearch=$(uname -i)
1308
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
1309
echo "Packages within this LiveCD (with version)"
1310
rpm -qa | sort
1311
echo "Packages within this LiveCD"
1312
rpm -qa --qf "%{name}\n" | sort
1313
# Note that running rpm recreates the rpm db files which aren't needed or wanted
1314
rm -f /var/lib/rpm/__db*
1315
 
1316
# go ahead and pre-make the man -k cache (#455968)
1317
/usr/bin/mandb
1318
 
1319
# save a little bit of space at least...
1320
rm -f /boot/initramfs*
1321
# make sure there aren't core files lying around
1322
rm -f /core*
1323
 
1324
# convince readahead not to collect
1325
# FIXME: for systemd
1326
 
1327
cat >> /etc/rc.d/init.d/livesys << EOF
1328
 
1329
 
1330
# disable updates plugin
1331
cat >> /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override << FOE
1332
[org.gnome.settings-daemon.plugins.updates]
1333
active=false
1334
FOE
1335
 
1336
# Show the system-config-keyboard tool on the desktop
1337
mkdir /home/liveuser/Desktop -p >/dev/null
1338
cat /usr/share/applications/system-config-keyboard.desktop | sed '/NotShowIn/d' |sed 's/Terminal=false/Terminal=true/' > /home/liveuser/Desktop/system-config-keyboard.desktop
1339
cat /usr/share/applications/liveinst.desktop | sed '/NoDisplay/d' > /home/liveuser/Desktop/liveinst.desktop 
1340
chmod +x /home/liveuser/Desktop/*.desktop
1341
chown -R liveuser:liveuser /home/liveuser
1342
 
1343
# Liveuser face
1344
if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
1345
    cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /home/liveuser/.face
1346
    chown liveuser:liveuser /home/liveuser/.face
1347
fi
1348
 
1349
# make the installer show up
1350
if [ -f /usr/share/applications/liveinst.desktop ]; then
1351
  # Show harddisk install in shell dash
1352
  sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop 
1353
  # need to move it to anaconda.desktop to make shell happy
1354
  #cp /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
1355
fi
1356
  cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
1357
[org.gnome.shell]
1358
favorite-apps=['liveinst.desktop','firefox.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'gnome-documents.desktop', 'anaconda.desktop']
1359
FOE
1360
 
1361
 
1362
# set up auto-login
1363
cat > /etc/gdm/custom.conf << FOE
1364
[daemon]
1365
AutomaticLoginEnable=True
1366
AutomaticLogin=liveuser
1367
FOE
1368
 
1369
# Turn off PackageKit-command-not-found while uninstalled
1370
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
1371
  sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
1372
fi
1373
 
1374
# make sure to set the right permissions and selinux contexts
1375
chown -R liveuser:liveuser /home/liveuser/
1376
restorecon -R /home/liveuser/
1377
 
398 beyerleu 1378
# Fixing default locale to us - does not work for SL7.1
397 beyerleu 1379
#localectl set-keymap us
1380
#localectl set-x11-keymap us
393 beyerleu 1381
EOF
1382
 
1383
# rebuild schema cache with any overrides we installed
1384
glib-compile-schemas /usr/share/glib-2.0/schemas
1385
 
1386
 
1387
%end