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
 
16
# SL repositories (fastbugs enabled per default) 
394 beyerleu 17
repo --name=base      --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/os/
18
repo --name=security  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/updates/security/
19
repo --name=fastbugs  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/updates/fastbugs/
393 beyerleu 20
 
21
# or use a mirror close to you
394 beyerleu 22
#repo --name=base      --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/os/
23
#repo --name=security  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/updates/security/
24
#repo --name=fastbugs  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/updates/fastbugs/
393 beyerleu 25
 
26
 
27
%packages
28
abattis-cantarell-fonts
29
accountsservice
30
accountsservice-libs
31
acl
32
adwaita-cursor-theme
33
adwaita-gtk2-theme
34
adwaita-gtk3-theme
35
aic94xx-firmware
36
alsa-firmware
37
alsa-lib
38
alsa-tools-firmware
39
anaconda
40
anaconda-widgets
41
at
42
atk
43
atkmm
44
at-spi2-atk
45
at-spi2-core
46
attr
47
audit
48
audit-libs
49
audit-libs-python
50
augeas-libs
51
authconfig
52
avahi
53
avahi-autoipd
54
avahi-glib
55
avahi-gobject
56
avahi-libs
57
avahi-ui-gtk3
58
baobab
59
basesystem
60
bash
61
bash-completion
62
bc
63
bind-libs
64
bind-libs-lite
65
bind-license
66
bind-utils
67
binutils
68
biosdevname
69
blktrace
70
bluez
71
bluez-libs
72
bridge-utils
73
btrfs-progs
74
bzip2
75
bzip2-libs
76
ca-certificates
77
cairo
78
cairo-gobject
79
cairomm
80
caribou
81
caribou-gtk2-module
82
caribou-gtk3-module
83
cdparanoia-libs
84
celt051
85
checkpolicy
86
cheese
87
cheese-libs
88
chkconfig
89
chrony
90
clutter
91
clutter-gst2
92
clutter-gtk
93
cogl
94
colord
95
colord-gtk
96
colord-libs
97
color-filesystem
98
comps-extras
99
control-center
100
control-center-filesystem
101
coreutils
102
cpio
103
cracklib
104
cracklib-dicts
105
crda
106
createrepo
107
cronie
108
cronie-anacron
109
crontabs
110
cryptsetup
111
cryptsetup-libs
112
cryptsetup-python
113
cups-libs
114
cups-pk-helper
115
curl
116
cyrus-sasl-lib
117
cyrus-sasl-plain
118
dbus
119
dbus-glib
120
dbus-libs
121
dbus-python
122
dbus-x11
123
dconf
124
dejavu-fonts-common
125
dejavu-sans-fonts
126
dejavu-sans-mono-fonts
127
dejavu-serif-fonts
128
deltarpm
129
desktop-file-utils
130
device-mapper
131
device-mapper-event
132
device-mapper-event-libs
133
device-mapper-libs
134
device-mapper-multipath
135
device-mapper-multipath-libs
136
device-mapper-persistent-data
137
dhclient
138
dhcp-common
139
dhcp-libs
140
diffutils
141
dmidecode
142
dmraid
143
dmraid-events
144
dnsmasq
145
dosfstools
146
dracut
147
dracut-config-rescue
148
dracut-network
149
dump
150
dyninst
151
e2fsprogs
152
e2fsprogs-libs
153
ebtables
154
ed
155
elfutils-libelf
156
elfutils-libs
157
emacs-filesystem
158
enchant
159
eog
160
ethtool
161
evince
162
evince-libs
163
evince-nautilus
164
evolution-data-server
165
exempi
166
exiv2-libs
167
expat
168
fcoe-utils
169
file
170
file-libs
171
file-roller
172
file-roller-nautilus
173
filesystem
174
findutils
175
fipscheck
176
fipscheck-lib
177
firefox
178
firewall-config
179
firewalld
180
firstboot
181
flac-libs
182
folks
183
fontconfig
184
fontpackages-filesystem
185
fprintd
186
fprintd-pam
187
freerdp
188
freerdp-libs
189
freerdp-plugins
190
freetype
191
frei0r-plugins
192
fros
193
fuse
194
fuse-libs
195
fxload
196
gamin
197
gavl
198
gawk
199
GConf2
200
gcr
201
gd
202
gdbm
203
gdisk
204
gdk-pixbuf2
205
gdm
206
gdm-libs
207
gedit
208
geoclue
209
gettext
210
gettext-libs
211
ghostscript
212
ghostscript-fonts
213
giflib
214
gjs
215
glade-libs
216
glib2
217
glibc
218
glibc-common
219
glibmm24
220
glib-networking
221
glusterfs-api
222
glusterfs-libs
223
glx-utils
224
gmp
225
gnome-bluetooth
226
gnome-bluetooth-libs
227
gnome-calculator
228
gnome-classic-session
229
gnome-clocks
230
gnome-color-manager
231
gnome-contacts
232
gnome-desktop3
233
gnome-dictionary
234
gnome-disk-utility
235
gnome-documents
236
gnome-font-viewer
237
gnome-icon-theme
238
gnome-icon-theme-extras
239
gnome-icon-theme-legacy
240
gnome-icon-theme-symbolic
241
gnome-keyring
242
gnome-keyring-pam
243
gnome-menus
244
gnome-online-accounts
245
gnome-packagekit
246
gnome-python2
247
gnome-python2-bonobo
248
gnome-python2-canvas
249
gnome-python2-gnome
250
gnome-python2-gnomevfs
251
gnome-screenshot
252
gnome-session
253
gnome-session-xsession
254
gnome-settings-daemon
255
gnome-settings-daemon-updates
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-plugin-rhtsupport
524
libreport-python
525
libreport-rhel-anaconda-bugzilla
526
libreport-web
527
libreswan
528
librsvg2
529
libsamplerate
530
libsecret
531
libselinux
532
libselinux-python
533
libselinux-utils
534
libsemanage
535
libsemanage-python
536
libsepol
537
libshout
538
libsigc++20
539
libSM
540
libsmbclient
541
libsndfile
542
libsoup
543
libspectre
544
libss
545
libssh2
546
libstdc++
547
libstoragemgmt
548
libstoragemgmt-python
549
libsysfs
550
libtalloc
551
libtar
552
libtasn1
553
libtdb
554
libteam
555
libtevent
556
libthai
557
libtheora
558
libtiff
559
libtool-ltdl
560
libudisks2
561
libunistring
562
libusb
563
libusbx
564
libuser
565
libuser-python
566
libutempter
567
libuuid
568
libv4l
569
libverto
570
libvisual
571
libvorbis
572
libvpx
573
libwacom
574
libwacom-data
575
libwbclient
576
libwebp
577
libwnck3
578
libX11
579
libX11-common
580
libXau
581
libxcb
582
libXcomposite
583
libXcursor
584
libXdamage
585
libXdmcp
586
libXevie
587
libXext
588
libXfixes
589
libXfont
590
libXft
591
libXi
592
libXinerama
593
libxkbfile
594
libxklavier
595
libxml2
596
libxml2-python
597
libXmu
598
libXpm
599
libXrandr
600
libXrender
601
libXres
602
libxslt
603
libXt
604
libXtst
605
libXv
606
libXvMC
607
libXxf86dga
608
libXxf86misc
609
libXxf86vm
610
libzapojit
611
linuxconsoletools
612
linux-firmware
613
lklug-fonts
614
lldpad
615
lm_sensors-libs
616
lockdev
617
logrotate
618
lohit-assamese-fonts
619
lohit-bengali-fonts
620
lohit-devanagari-fonts
621
lohit-gujarati-fonts
622
lohit-kannada-fonts
623
lohit-malayalam-fonts
624
lohit-marathi-fonts
625
lohit-nepali-fonts
626
lohit-oriya-fonts
627
lohit-punjabi-fonts
628
lohit-tamil-fonts
629
lohit-telugu-fonts
630
lsof
631
lua
632
lvm2
633
lvm2-libs
634
lzo
635
m17n-contrib
636
m17n-db
637
m17n-lib
638
m2crypto
639
madan-fonts
640
mailx
641
make
642
man-db
643
man-pages
644
man-pages-overrides
645
mariadb-libs
646
marisa
647
mdadm
648
mesa-dri-drivers
649
mesa-filesystem
650
mesa-libEGL
651
mesa-libgbm
652
mesa-libGL
653
mesa-libglapi
654
mesa-libxatracker
655
mesa-private-llvm
656
metacity
657
microcode_ctl
658
mlocate
659
mobile-broadband-provider-info
660
ModemManager-glib
661
mousetweaks
662
mozilla-filesystem
663
mozjs17
664
mtdev
665
mtools
666
mtr
667
mutter
668
nano
669
nautilus
670
nautilus-extensions
671
nautilus-open-terminal
672
nautilus-sendto
673
ncurses
674
ncurses-base
675
ncurses-libs
676
neon
677
net-snmp-libs
678
nettle
679
net-tools
680
NetworkManager
681
NetworkManager-config-server
682
NetworkManager-glib
683
NetworkManager-libreswan
684
NetworkManager-tui
685
newt
686
newt-python
687
nm-connection-editor
688
nspr
689
nss
690
nss-softokn
691
nss-softokn-freebl
692
nss-sysinit
693
nss-tools
694
nss-util
695
ntpdate
696
ntsysv
697
numactl-libs
698
obexd
699
oddjob
700
oddjob-mkhomedir
701
openjpeg-libs
702
openldap
703
openssh
704
openssh-clients
705
openssh-server
706
openssl
707
openssl-libs
708
opus
709
ORBit2
710
orc
711
os-prober
712
overpass-fonts
713
p11-kit
714
p11-kit-trust
715
PackageKit
716
PackageKit-command-not-found
717
PackageKit-device-rebind
718
PackageKit-glib
719
PackageKit-gtk3-module
720
PackageKit-yum
721
pakchois
722
paktype-naskh-basic-fonts
723
pam
724
pango
725
pangomm
726
paratype-pt-sans-fonts
727
parted
728
passwd
729
pciutils
730
pciutils-libs
731
pcre
732
pcsc-lite-libs
733
perl
734
perl-Carp
735
perl-constant
736
perl-Encode
737
perl-Exporter
738
perl-File-Path
739
perl-File-Temp
740
perl-Filter
741
perl-Getopt-Long
742
perl-HTTP-Tiny
743
perl-libs
744
perl-macros
745
perl-parent
746
perl-PathTools
747
perl-Pod-Escapes
748
perl-podlators
749
perl-Pod-Perldoc
750
perl-Pod-Simple
751
perl-Pod-Usage
752
perl-Scalar-List-Utils
753
perl-Socket
754
perl-Storable
755
perl-Text-ParseWords
756
perl-threads
757
perl-threads-shared
758
perl-Time-Local
759
pinentry
760
pinentry-gtk
761
pinfo
762
pixman
763
pkgconfig
764
plymouth
765
plymouth-core-libs
766
plymouth-graphics-libs
767
plymouth-plugin-label
768
plymouth-plugin-two-step
769
plymouth-scripts
770
plymouth-system-theme
771
plymouth-theme-charge
772
pm-utils
773
policycoreutils
774
policycoreutils-python
775
polkit
776
polkit-pkla-compat
777
poppler
778
poppler-data
779
poppler-glib
780
popt
781
postfix
782
ppp
783
procps-ng
784
psacct
785
psmisc
786
pth
787
pulseaudio
788
pulseaudio-gdm-hooks
789
pulseaudio-libs
790
pulseaudio-libs-glib2
791
pulseaudio-module-bluetooth
792
pyatspi
793
pycairo
794
pygobject2
795
pygobject3
796
pygobject3-base
797
pygpgme
798
pygtk2
799
pygtk2-libglade
800
pykickstart
801
pyliblzma
802
pyOpenSSL
803
pyorbit
804
pyparted
805
pytalloc
806
python
807
python-backports
808
python-backports-ssl_match_hostname
809
python-blivet
810
python-caribou
811
python-chardet
812
python-configobj
813
python-coverage
814
python-dateutil
815
python-decorator
816
python-deltarpm
817
python-di
818
python-dmidecode
819
python-ethtool
820
python-gudev
821
python-hwdata
822
python-iniparse
823
python-IPy
824
python-kitchen
825
python-libs
826
python-lxml
827
python-meh
828
python-nss
829
python-pwquality
830
python-pyblock
831
python-pycurl
832
python-pyudev
833
python-setuptools
834
python-slip
835
python-slip-dbus
836
python-urlgrabber
837
pytz
838
pyxattr
839
qrencode-libs
840
quota
841
quota-nls
842
rdate
843
readline
844
realmd
845
sl-bookmarks
846
sl-indexhtml
847
sl-logos
848
redhat-menus
849
rest
850
rfkill
851
rng-tools
852
rootfiles
853
rpm
854
rpm-build-libs
855
rpm-libs
856
rpm-python
857
rsync
858
rsyslog
859
rsyslog-mmjsonparse
860
rtkit
861
samba-common
862
samba-libs
863
satyr
864
sbc
865
scl-utils
866
SDL
867
seahorse
868
sed
869
selinux-policy
870
selinux-policy-targeted
871
setools-libs
872
setroubleshoot
873
setroubleshoot-plugins
874
setroubleshoot-server
875
setserial
876
setup
877
setuptool
878
sg3_utils-libs
879
sgpio
880
shadow-utils
881
shared-mime-info
882
sil-abyssinica-fonts
883
sil-nuosu-fonts
884
sil-padauk-fonts
885
slang
886
smartmontools
887
smc-fonts-common
888
smc-meera-fonts
889
snappy
890
sos
891
sound-theme-freedesktop
892
soundtouch
893
speex
894
spice-glib
895
spice-gtk3
896
spice-vdagent
897
sqlite
898
sssd-client
899
startup-notification
900
stix-fonts
901
strace
902
sudo
903
sushi
904
syslinux
905
sysstat
906
system-config-keyboard
907
system-config-keyboard-base
908
systemd
909
systemd-libs
910
systemd-python
911
systemd-sysv
912
systemtap-runtime
913
sysvinit-tools
914
taglib
915
tar
916
tcpdump
917
tcp_wrappers
918
tcp_wrappers-libs
919
tcsh
920
teamd
921
telepathy-filesystem
922
telepathy-glib
923
telepathy-logger
924
thai-scalable-fonts-common
925
thai-scalable-waree-fonts
926
tigervnc-license
927
tigervnc-server-minimal
928
time
929
totem
930
totem-nautilus
931
totem-pl-parser
932
traceroute
933
tracker
934
tuned
935
tzdata
936
ucs-miscfixed-fonts
937
udisks2
938
unbound-libs
939
unzip
940
upower
941
urw-fonts
942
usb_modeswitch
943
usb_modeswitch-data
944
usbmuxd
945
usbredir
946
usbutils
947
usermode
948
usermode-gtk
949
ustr
950
util-linux
951
vim-common
952
vim-enhanced
953
vim-filesystem
954
vim-minimal
955
vinagre
956
vino
957
virt-what
958
vlgothic-fonts
959
vte3
960
wavpack
961
webkitgtk3
962
webrtc-audio-processing
963
wget
964
which
965
words
966
wpa_supplicant
967
wqy-microhei-fonts
968
xcb-util
969
xdg-user-dirs
970
xdg-user-dirs-gtk
971
xdg-utils
972
xfsdump
973
xfsprogs
974
xkeyboard-config
975
xml-common
976
xmlrpc-c
977
xmlrpc-c-client
978
xorg-x11-drivers
979
xorg-x11-drv-ati
980
xorg-x11-drv-dummy
981
xorg-x11-drv-evdev
982
xorg-x11-drv-fbdev
983
xorg-x11-drv-intel
984
xorg-x11-drv-modesetting
985
xorg-x11-drv-nouveau
986
xorg-x11-drv-qxl
987
xorg-x11-drv-synaptics
988
xorg-x11-drv-v4l
989
xorg-x11-drv-vesa
990
xorg-x11-drv-vmmouse
991
xorg-x11-drv-vmware
992
xorg-x11-drv-void
993
xorg-x11-drv-wacom
994
xorg-x11-font-utils
995
xorg-x11-glamor
996
xorg-x11-server-common
997
xorg-x11-server-utils
998
xorg-x11-server-Xorg
999
xorg-x11-utils
1000
xorg-x11-xauth
1001
xorg-x11-xinit
1002
xorg-x11-xkb-utils
1003
xvattr
1004
xz
1005
xz-libs
1006
yajl
1007
yelp
1008
yelp-libs
1009
yelp-xsl
1010
yum
1011
yum-langpacks
1012
yum-metadata-parser
1013
yum-utils
1014
zenity
1015
zip
1016
zlib
1017
 
1018
# for UEFI/Secureboot support
1019
grub2
1020
grub2-efi
1021
efibootmgr
1022
shim
1023
 
1024
 
1025
 
1026
%end
1027
 
1028
%post
1029
# FIXME: it'd be better to get this installed from a package
1030
cat > /etc/rc.d/init.d/livesys << EOF
1031
#!/bin/bash
1032
#
1033
# live: Init script for live image
1034
#
1035
# chkconfig: 345 00 99
1036
# description: Init script for live image.
1037
### BEGIN INIT INFO
1038
# X-Start-Before: display-manager
1039
### END INIT INFO
1040
 
1041
. /etc/init.d/functions
1042
 
1043
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ]; then
1044
    exit 0
1045
fi
1046
 
1047
if [ -e /.liveimg-configured ] ; then
1048
    configdone=1
1049
fi
1050
 
1051
exists() {
1052
    which \$1 >/dev/null 2>&1 || return
1053
    \$*
1054
}
1055
 
1056
# Make sure we don't mangle the hardware clock on shutdown
1057
ln -sf /dev/null /etc/systemd/system/hwclock-save.service
1058
 
1059
livedir="LiveOS"
1060
for arg in \`cat /proc/cmdline\` ; do
1061
  if [ "\${arg##rd.live.dir=}" != "\${arg}" ]; then
1062
    livedir=\${arg##rd.live.dir=}
1063
    return
1064
  fi
1065
  if [ "\${arg##live_dir=}" != "\${arg}" ]; then
1066
    livedir=\${arg##live_dir=}
1067
    return
1068
  fi
1069
done
1070
 
1071
# enable swaps unless requested otherwise
1072
swaps=\`blkid -t TYPE=swap -o device\`
1073
if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then
1074
  for s in \$swaps ; do
1075
    action "Enabling swap partition \$s" swapon \$s
1076
  done
1077
fi
1078
if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /run/initramfs/live/\${livedir}/swap.img ] ; then
1079
  action "Enabling swap file" swapon /run/initramfs/live/\${livedir}/swap.img
1080
fi
1081
 
1082
mountPersistentHome() {
1083
  # support label/uuid
1084
  if [ "\${homedev##LABEL=}" != "\${homedev}" -o "\${homedev##UUID=}" != "\${homedev}" ]; then
1085
    homedev=\`/sbin/blkid -o device -t "\$homedev"\`
1086
  fi
1087
 
1088
  # if we're given a file rather than a blockdev, loopback it
1089
  if [ "\${homedev##mtd}" != "\${homedev}" ]; then
1090
    # mtd devs don't have a block device but get magic-mounted with -t jffs2
1091
    mountopts="-t jffs2"
1092
  elif [ ! -b "\$homedev" ]; then
1093
    loopdev=\`losetup -f\`
1094
    if [ "\${homedev##/run/initramfs/live}" != "\${homedev}" ]; then
1095
      action "Remounting live store r/w" mount -o remount,rw /run/initramfs/live
1096
    fi
1097
    losetup \$loopdev \$homedev
1098
    homedev=\$loopdev
1099
  fi
1100
 
1101
  # if it's encrypted, we need to unlock it
1102
  if [ "\$(/sbin/blkid -s TYPE -o value \$homedev 2>/dev/null)" = "crypto_LUKS" ]; then
1103
    echo
1104
    echo "Setting up encrypted /home device"
1105
    plymouth ask-for-password --command="cryptsetup luksOpen \$homedev EncHome"
1106
    homedev=/dev/mapper/EncHome
1107
  fi
1108
 
1109
  # and finally do the mount
1110
  mount \$mountopts \$homedev /home
1111
  # if we have /home under what's passed for persistent home, then
1112
  # we should make that the real /home.  useful for mtd device on olpc
1113
  if [ -d /home/home ]; then mount --bind /home/home /home ; fi
1114
  [ -x /sbin/restorecon ] && /sbin/restorecon /home
1115
  if [ -d /home/liveuser ]; then USERADDARGS="-M" ; fi
1116
}
1117
 
1118
findPersistentHome() {
1119
  for arg in \`cat /proc/cmdline\` ; do
1120
    if [ "\${arg##persistenthome=}" != "\${arg}" ]; then
1121
      homedev=\${arg##persistenthome=}
1122
      return
1123
    fi
1124
  done
1125
}
1126
 
1127
if strstr "\`cat /proc/cmdline\`" persistenthome= ; then
1128
  findPersistentHome
1129
elif [ -e /run/initramfs/live/\${livedir}/home.img ]; then
1130
  homedev=/run/initramfs/live/\${livedir}/home.img
1131
fi
1132
 
1133
# if we have a persistent /home, then we want to go ahead and mount it
1134
if ! strstr "\`cat /proc/cmdline\`" nopersistenthome && [ -n "\$homedev" ] ; then
1135
  action "Mounting persistent /home" mountPersistentHome
1136
fi
1137
 
1138
# make it so that we don't do writing to the overlay for things which
1139
# are just tmpdirs/caches
1140
mount -t tmpfs -o mode=0755 varcacheyum /var/cache/yum
1141
mount -t tmpfs vartmp /var/tmp
1142
[ -x /sbin/restorecon ] && /sbin/restorecon /var/cache/yum /var/tmp >/dev/null 2>&1
1143
 
1144
if [ -n "\$configdone" ]; then
1145
  exit 0
1146
fi
1147
 
1148
# add live user with no passwd
1149
action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser
1150
passwd -d liveuser > /dev/null
1151
usermod -aG wheel liveuser > /dev/null
1152
 
1153
# Remove root password lock
1154
passwd -d root > /dev/null
1155
 
1156
# turn off firstboot for livecd boots
1157
systemctl --no-reload disable firstboot-text.service 2> /dev/null || :
1158
systemctl --no-reload disable firstboot-graphical.service 2> /dev/null || :
1159
systemctl stop firstboot-text.service 2> /dev/null || :
1160
systemctl stop firstboot-graphical.service 2> /dev/null || :
1161
 
1162
# don't use prelink on a running live image
1163
sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || :
1164
 
1165
# turn off mdmonitor by default
1166
systemctl --no-reload disable mdmonitor.service 2> /dev/null || :
1167
systemctl --no-reload disable mdmonitor-takeover.service 2> /dev/null || :
1168
systemctl stop mdmonitor.service 2> /dev/null || :
1169
systemctl stop mdmonitor-takeover.service 2> /dev/null || :
1170
 
1171
# don't enable the gnome-settings-daemon packagekit plugin
1172
gsettings set org.gnome.settings-daemon.plugins.updates active 'false' || :
1173
 
1174
# don't start cron/at as they tend to spawn things which are
1175
# disk intensive that are painful on a live image
1176
systemctl --no-reload disable crond.service 2> /dev/null || :
1177
systemctl --no-reload disable atd.service 2> /dev/null || :
1178
systemctl stop crond.service 2> /dev/null || :
1179
systemctl stop atd.service 2> /dev/null || :
1180
 
1181
# Mark things as configured
1182
touch /.liveimg-configured
1183
 
1184
# add static hostname to work around xauth bug
1185
# https://bugzilla.redhat.com/show_bug.cgi?id=679486
1186
echo "localhost" > /etc/hostname
1187
 
1188
# Fixing the lang install issue when other lang than English is selected . See http://bugs.centos.org/view.php?id=7217
1189
/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig
1190
/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py
1191
 
1192
EOF
1193
 
1194
# bah, hal starts way too late
1195
cat > /etc/rc.d/init.d/livesys-late << EOF
1196
#!/bin/bash
1197
#
1198
# live: Late init script for live image
1199
#
1200
# chkconfig: 345 99 01
1201
# description: Late init script for live image.
1202
 
1203
. /etc/init.d/functions
1204
 
1205
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
1206
    exit 0
1207
fi
1208
 
1209
exists() {
1210
    which \$1 >/dev/null 2>&1 || return
1211
    \$*
1212
}
1213
 
1214
touch /.liveimg-late-configured
1215
 
1216
# read some variables out of /proc/cmdline
1217
for o in \`cat /proc/cmdline\` ; do
1218
    case \$o in
1219
    ks=*)
1220
        ks="--kickstart=\${o#ks=}"
1221
        ;;
1222
    xdriver=*)
1223
        xdriver="\${o#xdriver=}"
1224
        ;;
1225
    esac
1226
done
1227
 
1228
# if liveinst or textinst is given, start anaconda
1229
if strstr "\`cat /proc/cmdline\`" liveinst ; then
1230
   plymouth --quit
1231
   /usr/sbin/liveinst \$ks
1232
fi
1233
if strstr "\`cat /proc/cmdline\`" textinst ; then
1234
   plymouth --quit
1235
   /usr/sbin/liveinst --text \$ks
1236
fi
1237
 
1238
# configure X, allowing user to override xdriver
1239
if [ -n "\$xdriver" ]; then
1240
   cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
1241
Section "Device"
1242
	Identifier	"Videocard0"
1243
	Driver	"\$xdriver"
1244
EndSection
1245
FOE
1246
fi
1247
 
1248
EOF
1249
 
1250
chmod 755 /etc/rc.d/init.d/livesys
1251
/sbin/restorecon /etc/rc.d/init.d/livesys
1252
/sbin/chkconfig --add livesys
1253
 
1254
chmod 755 /etc/rc.d/init.d/livesys-late
1255
/sbin/restorecon /etc/rc.d/init.d/livesys-late
1256
/sbin/chkconfig --add livesys-late
1257
 
1258
# enable tmpfs for /tmp
1259
systemctl enable tmp.mount
1260
 
1261
# work around for poor key import UI in PackageKit
1262
rm -f /var/lib/rpm/__db*
1263
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
1264
basearch=$(uname -i)
1265
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
1266
echo "Packages within this LiveCD (with version)"
1267
rpm -qa | sort
1268
echo "Packages within this LiveCD"
1269
rpm -qa --qf "%{name}\n" | sort
1270
# Note that running rpm recreates the rpm db files which aren't needed or wanted
1271
rm -f /var/lib/rpm/__db*
1272
 
1273
# go ahead and pre-make the man -k cache (#455968)
1274
/usr/bin/mandb
1275
 
1276
# save a little bit of space at least...
1277
rm -f /boot/initramfs*
1278
# make sure there aren't core files lying around
1279
rm -f /core*
1280
 
1281
# convince readahead not to collect
1282
# FIXME: for systemd
1283
 
1284
cat >> /etc/rc.d/init.d/livesys << EOF
1285
 
1286
 
1287
# disable updates plugin
1288
cat >> /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override << FOE
1289
[org.gnome.settings-daemon.plugins.updates]
1290
active=false
1291
FOE
1292
 
1293
# Show the system-config-keyboard tool on the desktop
1294
mkdir /home/liveuser/Desktop -p >/dev/null
1295
cat /usr/share/applications/system-config-keyboard.desktop | sed '/NotShowIn/d' |sed 's/Terminal=false/Terminal=true/' > /home/liveuser/Desktop/system-config-keyboard.desktop
1296
cat /usr/share/applications/liveinst.desktop | sed '/NoDisplay/d' > /home/liveuser/Desktop/liveinst.desktop 
1297
chmod +x /home/liveuser/Desktop/*.desktop
1298
chown -R liveuser:liveuser /home/liveuser
1299
 
1300
# Liveuser face
1301
if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
1302
    cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /home/liveuser/.face
1303
    chown liveuser:liveuser /home/liveuser/.face
1304
fi
1305
 
1306
# make the installer show up
1307
if [ -f /usr/share/applications/liveinst.desktop ]; then
1308
  # Show harddisk install in shell dash
1309
  sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop 
1310
  # need to move it to anaconda.desktop to make shell happy
1311
  #cp /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
1312
fi
1313
  cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
1314
[org.gnome.shell]
1315
favorite-apps=['liveinst.desktop','firefox.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'gnome-documents.desktop', 'anaconda.desktop']
1316
FOE
1317
 
1318
 
1319
# set up auto-login
1320
cat > /etc/gdm/custom.conf << FOE
1321
[daemon]
1322
AutomaticLoginEnable=True
1323
AutomaticLogin=liveuser
1324
FOE
1325
 
1326
# Turn off PackageKit-command-not-found while uninstalled
1327
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
1328
  sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
1329
fi
1330
 
1331
# make sure to set the right permissions and selinux contexts
1332
chown -R liveuser:liveuser /home/liveuser/
1333
restorecon -R /home/liveuser/
1334
 
1335
# Fixing default locale to us
1336
localectl set-keymap us
1337
localectl set-x11-keymap us
1338
EOF
1339
 
1340
# rebuild schema cache with any overrides we installed
1341
glib-compile-schemas /usr/share/glib-2.0/schemas
1342
 
1343
 
1344
%end