Subversion Repositories livecd

Rev

Rev 423 | Details | Compare with Previous | Last modification | View Log | RSS feed

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