Subversion Repositories livecd

Rev

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

Rev Author Line No. Line
381 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
 
382 beyerleu 16
# SL repositories (fastbugs enabled per default) 
392 beyerleu 17
#repo --name=base      --baseurl=http://ftp.scientificlinux.org/linux/scientific/7.0/$basearch/os/
18
#repo --name=security  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7.0/$basearch/updates/security/
19
#repo --name=fastbugs  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7.0/$basearch/updates/fastbugs/
381 beyerleu 20
 
382 beyerleu 21
# or use a mirror close to you
392 beyerleu 22
repo --name=base      --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7.0/$basearch/os/
23
repo --name=security  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7.0/$basearch/updates/security/
24
repo --name=fastbugs  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7.0/$basearch/updates/fastbugs/
382 beyerleu 25
 
26
 
381 beyerleu 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
382 beyerleu 149
dump
381 beyerleu 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
libertas-sd8686-firmware
446
libertas-sd8787-firmware
447
libertas-usb8388-firmware
448
libestr
449
libevent
450
libexif
451
libffi
452
libfontenc
453
libfprint
454
libgcc
455
libgcrypt
456
libgdata
457
libgdither
458
libgee
459
libgee06
460
libglade2
461
libgnome
462
libgnomecanvas
463
libgnomekbd
464
libgnome-keyring
465
libgnomeui
466
libgomp
467
libgpg-error
468
libgphoto2
469
libgsf
470
libgtop2
471
libgudev1
472
libgusb
473
libgweather
474
libgxps
475
libhangul
476
libhbaapi
477
libhbalinux
478
libical
479
libICE
480
libicu
481
libIDL
482
libidn
483
libiec61883
484
libieee1284
485
libimobiledevice
486
libiptcdata
487
libiscsi
488
libjpeg-turbo
489
libldb
490
libmnl
491
libmodman
492
libmount
493
libmtp
494
libmusicbrainz5
495
libndp
496
libnetfilter_conntrack
497
libnfnetlink
498
libnl
499
libnl3
500
libnl3-cli
501
libnm-gtk
502
libnotify
503
liboauth
504
libogg
505
libosinfo
506
libpcap
507
libpciaccess
508
libpeas
509
libpipeline
510
libplist
511
libpng
512
libproxy
513
libproxy-mozjs
514
libpwquality
515
libquvi
516
libquvi-scripts
517
libraw1394
518
libreport
519
libreport-anaconda
520
libreport-cli
521
libreport-filesystem
522
libreport-gtk
523
libreport-plugin-bugzilla
524
libreport-plugin-mailx
525
libreport-plugin-reportuploader
526
libreport-plugin-rhtsupport
527
libreport-python
528
libreport-rhel-anaconda-bugzilla
529
libreport-web
530
libreswan
531
librsvg2
532
libsamplerate
533
libsecret
534
libselinux
535
libselinux-python
536
libselinux-utils
537
libsemanage
538
libsemanage-python
539
libsepol
540
libshout
541
libsigc++20
542
libSM
543
libsmbclient
544
libsndfile
545
libsoup
546
libspectre
547
libss
548
libssh2
549
libstdc++
550
libstoragemgmt
551
libstoragemgmt-python
552
libsysfs
553
libtalloc
554
libtar
555
libtasn1
556
libtdb
557
libteam
558
libtevent
559
libthai
560
libtheora
561
libtiff
562
libtool-ltdl
563
libudisks2
564
libunistring
565
libusb
566
libusbx
567
libuser
568
libuser-python
569
libutempter
570
libuuid
571
libv4l
572
libverto
573
libvisual
574
libvorbis
575
libvpx
576
libwacom
577
libwacom-data
578
libwbclient
579
libwebp
580
libwnck3
581
libX11
582
libX11-common
583
libXau
584
libxcb
585
libXcomposite
586
libXcursor
587
libXdamage
588
libXdmcp
589
libXevie
590
libXext
591
libXfixes
592
libXfont
593
libXft
594
libXi
595
libXinerama
596
libxkbfile
597
libxklavier
598
libxml2
599
libxml2-python
600
libXmu
601
libXpm
602
libXrandr
603
libXrender
604
libXres
605
libxslt
606
libXt
607
libXtst
608
libXv
609
libXvMC
610
libXxf86dga
611
libXxf86misc
612
libXxf86vm
613
libzapojit
614
linuxconsoletools
615
linux-firmware
616
lklug-fonts
617
lldpad
618
lm_sensors-libs
619
lockdev
620
logrotate
621
lohit-assamese-fonts
622
lohit-bengali-fonts
623
lohit-devanagari-fonts
624
lohit-gujarati-fonts
625
lohit-kannada-fonts
626
lohit-malayalam-fonts
627
lohit-marathi-fonts
628
lohit-nepali-fonts
629
lohit-oriya-fonts
630
lohit-punjabi-fonts
631
lohit-tamil-fonts
632
lohit-telugu-fonts
633
lsof
634
lua
635
lvm2
636
lvm2-libs
637
lzo
638
m17n-contrib
639
m17n-db
640
m17n-lib
641
m2crypto
642
madan-fonts
643
mailx
644
make
645
man-db
646
man-pages
647
man-pages-overrides
648
mariadb-libs
649
marisa
650
mdadm
651
mesa-dri-drivers
652
mesa-filesystem
653
mesa-libEGL
654
mesa-libgbm
655
mesa-libGL
656
mesa-libglapi
657
mesa-libxatracker
658
mesa-private-llvm
659
metacity
660
microcode_ctl
661
mlocate
662
mobile-broadband-provider-info
663
ModemManager-glib
664
mousetweaks
665
mozilla-filesystem
666
mozjs17
667
mtdev
668
mtools
669
mtr
670
mutter
671
nano
672
nautilus
673
nautilus-extensions
674
nautilus-open-terminal
675
nautilus-sendto
676
ncurses
677
ncurses-base
678
ncurses-libs
679
neon
680
net-snmp-libs
681
nettle
682
net-tools
683
NetworkManager
684
NetworkManager-config-server
685
NetworkManager-glib
686
NetworkManager-libreswan
687
NetworkManager-tui
688
newt
689
newt-python
690
nm-connection-editor
691
nspr
692
nss
693
nss-softokn
694
nss-softokn-freebl
695
nss-sysinit
696
nss-tools
697
nss-util
698
ntpdate
699
ntsysv
700
numactl-libs
701
obexd
702
oddjob
703
oddjob-mkhomedir
704
openjpeg-libs
705
openldap
706
openssh
707
openssh-clients
708
openssh-server
709
openssl
710
openssl-libs
711
opus
712
ORBit2
713
orc
714
os-prober
715
overpass-fonts
716
p11-kit
717
p11-kit-trust
718
PackageKit
719
PackageKit-command-not-found
720
PackageKit-device-rebind
721
PackageKit-glib
722
PackageKit-gtk3-module
723
PackageKit-yum
724
pakchois
725
paktype-naskh-basic-fonts
726
pam
727
pango
728
pangomm
729
paratype-pt-sans-fonts
730
parted
731
passwd
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
 
392 beyerleu 1021
# for UEFI/Secureboot support
381 beyerleu 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
 
1184
# Mark things as configured
1185
touch /.liveimg-configured
1186
 
1187
# add static hostname to work around xauth bug
1188
# https://bugzilla.redhat.com/show_bug.cgi?id=679486
1189
echo "localhost" > /etc/hostname
1190
 
1191
# Fixing the lang install issue when other lang than English is selected . See http://bugs.centos.org/view.php?id=7217
1192
/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig
1193
/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py
1194
 
1195
EOF
1196
 
1197
# bah, hal starts way too late
1198
cat > /etc/rc.d/init.d/livesys-late << EOF
1199
#!/bin/bash
1200
#
1201
# live: Late init script for live image
1202
#
1203
# chkconfig: 345 99 01
1204
# description: Late init script for live image.
1205
 
1206
. /etc/init.d/functions
1207
 
1208
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
1209
    exit 0
1210
fi
1211
 
1212
exists() {
1213
    which \$1 >/dev/null 2>&1 || return
1214
    \$*
1215
}
1216
 
1217
touch /.liveimg-late-configured
1218
 
1219
# read some variables out of /proc/cmdline
1220
for o in \`cat /proc/cmdline\` ; do
1221
    case \$o in
1222
    ks=*)
1223
        ks="--kickstart=\${o#ks=}"
1224
        ;;
1225
    xdriver=*)
1226
        xdriver="\${o#xdriver=}"
1227
        ;;
1228
    esac
1229
done
1230
 
1231
# if liveinst or textinst is given, start anaconda
1232
if strstr "\`cat /proc/cmdline\`" liveinst ; then
1233
   plymouth --quit
1234
   /usr/sbin/liveinst \$ks
1235
fi
1236
if strstr "\`cat /proc/cmdline\`" textinst ; then
1237
   plymouth --quit
1238
   /usr/sbin/liveinst --text \$ks
1239
fi
1240
 
1241
# configure X, allowing user to override xdriver
1242
if [ -n "\$xdriver" ]; then
1243
   cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
1244
Section "Device"
1245
	Identifier	"Videocard0"
1246
	Driver	"\$xdriver"
1247
EndSection
1248
FOE
1249
fi
1250
 
1251
EOF
1252
 
1253
chmod 755 /etc/rc.d/init.d/livesys
1254
/sbin/restorecon /etc/rc.d/init.d/livesys
1255
/sbin/chkconfig --add livesys
1256
 
1257
chmod 755 /etc/rc.d/init.d/livesys-late
1258
/sbin/restorecon /etc/rc.d/init.d/livesys-late
1259
/sbin/chkconfig --add livesys-late
1260
 
1261
# enable tmpfs for /tmp
1262
systemctl enable tmp.mount
1263
 
1264
# work around for poor key import UI in PackageKit
1265
rm -f /var/lib/rpm/__db*
1266
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
1267
basearch=$(uname -i)
392 beyerleu 1268
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
1269
echo "Packages within this LiveCD (with version)"
1270
rpm -qa | sort
381 beyerleu 1271
echo "Packages within this LiveCD"
392 beyerleu 1272
rpm -qa --qf "%{name}\n" | sort
381 beyerleu 1273
# Note that running rpm recreates the rpm db files which aren't needed or wanted
1274
rm -f /var/lib/rpm/__db*
1275
 
1276
# go ahead and pre-make the man -k cache (#455968)
1277
/usr/bin/mandb
1278
 
1279
# save a little bit of space at least...
1280
rm -f /boot/initramfs*
1281
# make sure there aren't core files lying around
1282
rm -f /core*
1283
 
1284
# convince readahead not to collect
1285
# FIXME: for systemd
1286
 
1287
cat >> /etc/rc.d/init.d/livesys << EOF
1288
 
1289
 
1290
# disable updates plugin
1291
cat >> /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override << FOE
1292
[org.gnome.settings-daemon.plugins.updates]
1293
active=false
1294
FOE
1295
 
1296
# Show the system-config-keyboard tool on the desktop
1297
mkdir /home/liveuser/Desktop -p >/dev/null
1298
cat /usr/share/applications/system-config-keyboard.desktop | sed '/NotShowIn/d' |sed 's/Terminal=false/Terminal=true/' > /home/liveuser/Desktop/system-config-keyboard.desktop
1299
cat /usr/share/applications/liveinst.desktop | sed '/NoDisplay/d' > /home/liveuser/Desktop/liveinst.desktop 
1300
chmod +x /home/liveuser/Desktop/*.desktop
1301
chown -R liveuser:liveuser /home/liveuser
1302
 
1303
# Liveuser face
1304
if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
1305
    cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /home/liveuser/.face
1306
    chown liveuser:liveuser /home/liveuser/.face
1307
fi
1308
 
1309
# make the installer show up
1310
if [ -f /usr/share/applications/liveinst.desktop ]; then
1311
  # Show harddisk install in shell dash
1312
  sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop 
1313
  # need to move it to anaconda.desktop to make shell happy
1314
  #cp /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
1315
fi
1316
  cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
1317
[org.gnome.shell]
1318
favorite-apps=['liveinst.desktop','firefox.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'gnome-documents.desktop', 'anaconda.desktop']
1319
FOE
1320
 
1321
 
1322
# set up auto-login
1323
cat > /etc/gdm/custom.conf << FOE
1324
[daemon]
1325
AutomaticLoginEnable=True
1326
AutomaticLogin=liveuser
1327
FOE
1328
 
1329
# Turn off PackageKit-command-not-found while uninstalled
1330
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
1331
  sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
1332
fi
1333
 
1334
# make sure to set the right permissions and selinux contexts
1335
chown -R liveuser:liveuser /home/liveuser/
1336
restorecon -R /home/liveuser/
1337
 
1338
# Fixing default locale to us
1339
localectl set-keymap us
1340
localectl set-x11-keymap us
1341
EOF
1342
 
1343
# rebuild schema cache with any overrides we installed
1344
glib-compile-schemas /usr/share/glib-2.0/schemas
1345
 
1346
 
1347
%end