Subversion Repositories livecd

Rev

Rev 402 | Rev 411 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
393 beyerleu 1
 
2
lang en_GB.UTF-8
3
keyboard us
4
timezone Europe/Brussels --isUtc
5
auth --useshadow --enablemd5
6
selinux --enforcing
7
firewall --enabled --service=mdns
8
xconfig --startxonboot
9
part / --size 8192 --fstype ext4
10
services --enabled=NetworkManager --disabled=network,sshd
11
 
12
 
13
# Root password
14
rootpw --iscrypted $6$K2nKf02kVKG68960$OywvoaViphSITuro/liKvCj7Pm/CH/xqzz/lsoXyaKSR1lYf0vHAqSUc483a9MCCBkIwfr/hNMfqwxqVO0OEg1
15
 
398 beyerleu 16
# Workaround for the grubby issue on live media (see https://bugzilla.redhat.com/show_bug.cgi?id=1153410)
393 beyerleu 17
# SL repositories (fastbugs enabled per default) 
398 beyerleu 18
repo --name=base      --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/os/               --excludepkgs=grubby
19
repo --name=security  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/updates/security/ --excludepkgs=grubby
20
repo --name=fastbugs  --baseurl=http://ftp.scientificlinux.org/linux/scientific/7rolling/$basearch/updates/fastbugs/ --excludepkgs=grubby
399 beyerleu 21
repo --name=grubby    --baseurl=http://ftp.scientificlinux.org/linux/scientific/7.0/$basearch/os/                    --includepkgs=grubby
393 beyerleu 22
 
23
# or use a mirror close to you
398 beyerleu 24
#repo --name=base      --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/os/               --excludepkgs=grubby
25
#repo --name=security  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/updates/security/ --excludepkgs=grubby
26
#repo --name=fastbugs  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/7rolling/$basearch/updates/fastbugs/ --excludepkgs=grubby
399 beyerleu 27
#repo --name=grubby    --baseurl=http://ftp.scientificlinux.org/linux/scientific/7.0/$basearch/os/                       --includepkgs=grubby
393 beyerleu 28
 
29
 
30
%packages
31
abattis-cantarell-fonts
32
accountsservice
33
accountsservice-libs
34
acl
35
adwaita-cursor-theme
36
adwaita-gtk2-theme
37
adwaita-gtk3-theme
38
aic94xx-firmware
39
alsa-firmware
40
alsa-lib
41
alsa-tools-firmware
42
anaconda
43
anaconda-widgets
44
at
45
atk
46
atkmm
47
at-spi2-atk
48
at-spi2-core
49
attr
50
audit
51
audit-libs
52
audit-libs-python
53
augeas-libs
54
authconfig
55
avahi
56
avahi-autoipd
57
avahi-glib
58
avahi-gobject
59
avahi-libs
60
avahi-ui-gtk3
61
baobab
62
basesystem
63
bash
64
bash-completion
65
bc
66
bind-libs
67
bind-libs-lite
68
bind-license
69
bind-utils
70
binutils
71
biosdevname
72
blktrace
73
bluez
74
bluez-libs
75
bridge-utils
76
btrfs-progs
77
bzip2
78
bzip2-libs
79
ca-certificates
80
cairo
81
cairo-gobject
82
cairomm
83
caribou
84
caribou-gtk2-module
85
caribou-gtk3-module
86
cdparanoia-libs
87
celt051
88
checkpolicy
89
cheese
90
cheese-libs
91
chkconfig
92
chrony
93
clutter
94
clutter-gst2
95
clutter-gtk
96
cogl
97
colord
98
colord-gtk
99
colord-libs
100
color-filesystem
101
comps-extras
102
control-center
103
control-center-filesystem
104
coreutils
105
cpio
106
cracklib
107
cracklib-dicts
108
crda
109
createrepo
110
cronie
111
cronie-anacron
112
crontabs
113
cryptsetup
114
cryptsetup-libs
115
cryptsetup-python
116
cups-libs
117
cups-pk-helper
118
curl
119
cyrus-sasl-lib
120
cyrus-sasl-plain
121
dbus
122
dbus-glib
123
dbus-libs
124
dbus-python
125
dbus-x11
126
dconf
127
dejavu-fonts-common
128
dejavu-sans-fonts
129
dejavu-sans-mono-fonts
130
dejavu-serif-fonts
131
deltarpm
132
desktop-file-utils
133
device-mapper
134
device-mapper-event
135
device-mapper-event-libs
136
device-mapper-libs
137
device-mapper-multipath
138
device-mapper-multipath-libs
139
device-mapper-persistent-data
140
dhclient
141
dhcp-common
142
dhcp-libs
143
diffutils
144
dmidecode
145
dmraid
146
dmraid-events
147
dnsmasq
148
dosfstools
149
dracut
150
dracut-config-rescue
151
dracut-network
152
dyninst
153
e2fsprogs
154
e2fsprogs-libs
155
ebtables
156
ed
157
elfutils-libelf
158
elfutils-libs
159
emacs-filesystem
160
enchant
161
eog
162
ethtool
163
evince
164
evince-libs
165
evince-nautilus
166
evolution-data-server
167
exempi
168
exiv2-libs
169
expat
170
fcoe-utils
171
file
172
file-libs
173
file-roller
174
file-roller-nautilus
175
filesystem
176
findutils
177
fipscheck
178
fipscheck-lib
179
firefox
180
firewall-config
181
firewalld
182
firstboot
183
flac-libs
184
folks
185
fontconfig
186
fontpackages-filesystem
187
fprintd
188
fprintd-pam
189
freerdp
190
freerdp-libs
191
freerdp-plugins
192
freetype
193
frei0r-plugins
194
fros
195
fuse
196
fuse-libs
197
fxload
198
gamin
199
gavl
200
gawk
201
GConf2
202
gcr
203
gd
204
gdbm
205
gdisk
206
gdk-pixbuf2
207
gdm
208
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-config-server
681
NetworkManager-glib
682
NetworkManager-libreswan
683
NetworkManager-tui
684
newt
685
newt-python
686
nm-connection-editor
687
nspr
688
nss
689
nss-softokn
690
nss-softokn-freebl
691
nss-sysinit
692
nss-tools
693
nss-util
694
ntpdate
695
ntsysv
696
numactl-libs
697
obexd
698
oddjob
699
oddjob-mkhomedir
700
openjpeg-libs
701
openldap
702
openssh
703
openssh-clients
704
openssh-server
705
openssl
706
openssl-libs
707
opus
708
ORBit2
709
orc
710
os-prober
711
overpass-fonts
712
p11-kit
713
p11-kit-trust
714
PackageKit
715
PackageKit-command-not-found
716
PackageKit-device-rebind
717
PackageKit-glib
718
PackageKit-gtk3-module
719
PackageKit-yum
720
pakchois
721
paktype-naskh-basic-fonts
722
pam
723
pango
724
pangomm
725
paratype-pt-sans-fonts
726
parted
727
passwd
398 beyerleu 728
patch
393 beyerleu 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
402 beyerleu 1172
echo -e "\ngsettings set org.gnome.settings-daemon.plugins.updates active 'false' &>/dev/null || :" >> /home/liveuser/.bashrc
393 beyerleu 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
 
396 beyerleu 1181
# disable kdump service
1182
systemctl --no-reload disable kdump.service 2> /dev/null || :
1183
systemctl stop kdump.service 2> /dev/null || :
1184
 
393 beyerleu 1185
# Mark things as configured
1186
touch /.liveimg-configured
1187
 
1188
# add static hostname to work around xauth bug
1189
# https://bugzilla.redhat.com/show_bug.cgi?id=679486
1190
echo "localhost" > /etc/hostname
1191
 
1192
# Fixing the lang install issue when other lang than English is selected . See http://bugs.centos.org/view.php?id=7217
1193
/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig
1194
/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py
1195
 
1196
EOF
1197
 
1198
# bah, hal starts way too late
1199
cat > /etc/rc.d/init.d/livesys-late << EOF
1200
#!/bin/bash
1201
#
1202
# live: Late init script for live image
1203
#
1204
# chkconfig: 345 99 01
1205
# description: Late init script for live image.
1206
 
1207
. /etc/init.d/functions
1208
 
1209
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
1210
    exit 0
1211
fi
1212
 
1213
exists() {
1214
    which \$1 >/dev/null 2>&1 || return
1215
    \$*
1216
}
1217
 
1218
touch /.liveimg-late-configured
1219
 
1220
# read some variables out of /proc/cmdline
1221
for o in \`cat /proc/cmdline\` ; do
1222
    case \$o in
1223
    ks=*)
1224
        ks="--kickstart=\${o#ks=}"
1225
        ;;
1226
    xdriver=*)
1227
        xdriver="\${o#xdriver=}"
1228
        ;;
1229
    esac
1230
done
1231
 
1232
# if liveinst or textinst is given, start anaconda
1233
if strstr "\`cat /proc/cmdline\`" liveinst ; then
1234
   plymouth --quit
1235
   /usr/sbin/liveinst \$ks
1236
fi
1237
if strstr "\`cat /proc/cmdline\`" textinst ; then
1238
   plymouth --quit
1239
   /usr/sbin/liveinst --text \$ks
1240
fi
1241
 
1242
# configure X, allowing user to override xdriver
1243
if [ -n "\$xdriver" ]; then
1244
   cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
1245
Section "Device"
1246
	Identifier	"Videocard0"
1247
	Driver	"\$xdriver"
1248
EndSection
1249
FOE
1250
fi
1251
 
1252
EOF
1253
 
1254
chmod 755 /etc/rc.d/init.d/livesys
1255
/sbin/restorecon /etc/rc.d/init.d/livesys
1256
/sbin/chkconfig --add livesys
1257
 
1258
chmod 755 /etc/rc.d/init.d/livesys-late
1259
/sbin/restorecon /etc/rc.d/init.d/livesys-late
1260
/sbin/chkconfig --add livesys-late
1261
 
1262
# enable tmpfs for /tmp
1263
systemctl enable tmp.mount
1264
 
1265
# work around for poor key import UI in PackageKit
1266
rm -f /var/lib/rpm/__db*
1267
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
1268
basearch=$(uname -i)
1269
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
1270
echo "Packages within this LiveCD (with version)"
1271
rpm -qa | sort
1272
echo "Packages within this LiveCD"
1273
rpm -qa --qf "%{name}\n" | sort
1274
# Note that running rpm recreates the rpm db files which aren't needed or wanted
1275
rm -f /var/lib/rpm/__db*
1276
 
1277
# go ahead and pre-make the man -k cache (#455968)
1278
/usr/bin/mandb
1279
 
1280
# save a little bit of space at least...
1281
rm -f /boot/initramfs*
1282
# make sure there aren't core files lying around
1283
rm -f /core*
1284
 
1285
# convince readahead not to collect
1286
# FIXME: for systemd
1287
 
1288
cat >> /etc/rc.d/init.d/livesys << EOF
1289
 
1290
 
1291
# disable updates plugin
1292
cat >> /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override << FOE
1293
[org.gnome.settings-daemon.plugins.updates]
1294
active=false
1295
FOE
1296
 
1297
# Show the system-config-keyboard tool on the desktop
1298
mkdir /home/liveuser/Desktop -p >/dev/null
1299
cat /usr/share/applications/system-config-keyboard.desktop | sed '/NotShowIn/d' |sed 's/Terminal=false/Terminal=true/' > /home/liveuser/Desktop/system-config-keyboard.desktop
1300
cat /usr/share/applications/liveinst.desktop | sed '/NoDisplay/d' > /home/liveuser/Desktop/liveinst.desktop 
1301
chmod +x /home/liveuser/Desktop/*.desktop
1302
chown -R liveuser:liveuser /home/liveuser
1303
 
1304
# Liveuser face
1305
if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
1306
    cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /home/liveuser/.face
1307
    chown liveuser:liveuser /home/liveuser/.face
1308
fi
1309
 
1310
# make the installer show up
1311
if [ -f /usr/share/applications/liveinst.desktop ]; then
1312
  # Show harddisk install in shell dash
1313
  sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop 
1314
  # need to move it to anaconda.desktop to make shell happy
1315
  #cp /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
1316
fi
1317
  cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
1318
[org.gnome.shell]
1319
favorite-apps=['liveinst.desktop','firefox.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'gnome-documents.desktop', 'anaconda.desktop']
1320
FOE
1321
 
1322
 
1323
# set up auto-login
1324
cat > /etc/gdm/custom.conf << FOE
1325
[daemon]
1326
AutomaticLoginEnable=True
1327
AutomaticLogin=liveuser
1328
FOE
1329
 
1330
# Turn off PackageKit-command-not-found while uninstalled
1331
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
1332
  sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
1333
fi
1334
 
1335
# make sure to set the right permissions and selinux contexts
1336
chown -R liveuser:liveuser /home/liveuser/
1337
restorecon -R /home/liveuser/
1338
 
398 beyerleu 1339
# Fixing default locale to us - does not work for SL7.1
397 beyerleu 1340
#localectl set-keymap us
1341
#localectl set-x11-keymap us
393 beyerleu 1342
EOF
1343
 
1344
# rebuild schema cache with any overrides we installed
1345
glib-compile-schemas /usr/share/glib-2.0/schemas
1346
 
1347
 
1348
%end