Subversion Repositories livecd

Rev

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