Subversion Repositories livecd

Rev

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