Subversion Repositories livecd

Rev

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

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