Subversion Repositories livecd

Rev

Rev 294 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 294 Rev 295
Line 11... Line 11...
11
keyboard us
11
keyboard us
12
timezone US/Eastern
12
timezone US/Eastern
13
auth --useshadow --enablemd5
13
auth --useshadow --enablemd5
14
selinux --enforcing
14
selinux --enforcing
15
firewall --enabled --service=mdns
15
firewall --enabled --service=mdns
16
repo --name=base      --baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/$basearch/os/
16
#repo --name=base      --baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/$basearch/os/
17
repo --name=security  --baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/$basearch/updates/security/
17
#repo --name=security  --baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/$basearch/updates/security/
-
 
18
repo --name=base      --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/6.0/$basearch/os/
-
 
19
repo --name=security  --baseurl=http://mirror.switch.ch/ftp/mirror/scientificlinux/6.0/$basearch/updates/security/
-
 
20
repo --name=extra     --baseurl=http://www.livecd.ethz.ch/download/extra/$basearch/
18
#fastbugs repo disabled per default
21
#fastbugs repo disabled per default
19
#repo --name=fastbugs  --baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/$basearch/updates/fastbugs/
22
#repo --name=fastbugs  --baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/$basearch/updates/fastbugs/
20
xconfig --startxonboot
23
xconfig --startxonboot
21
services --enabled=NetworkManager --disabled=network,sshd
24
services --enabled=NetworkManager --disabled=network,sshd
22
 
25
 
Line 57... Line 60...
57
# livecd bits to set up the livecd and be able to install
60
# livecd bits to set up the livecd and be able to install
58
anaconda
61
anaconda
59
device-mapper-multipath
62
device-mapper-multipath
60
isomd5sum
63
isomd5sum
61
 
64
 
62
# yum-conf for additional repos
-
 
63
yum-conf-adobe 
-
 
64
yum-conf-atrpms 
-
 
65
yum-conf-elrepo 
-
 
66
yum-conf-epel 
-
 
67
yum-conf-rpmforge
-
 
68
 
-
 
69
# dependencies for gparted
65
# dependencies for gparted
70
cairomm
66
cairomm
71
glibmm24
67
glibmm24
72
gtkmm24
68
gtkmm24
73
libsigc++20
69
libsigc++20
Line 77... Line 73...
77
lzo
73
lzo
78
 
74
 
79
# dependencies for fuse-ntfs-3g
75
# dependencies for fuse-ntfs-3g
80
fuse
76
fuse
81
 
77
 
-
 
78
# install extra software
-
 
79
 
-
 
80
# from rpmforge
-
 
81
fuse-ntfs-3g
-
 
82
fuse-sshfs
-
 
83
ntfsprogs
-
 
84
dd_rescue
-
 
85
ddrescue
-
 
86
iperf
-
 
87
rxvt-unicode
-
 
88
#testdisk      # 3 MB
-
 
89
 
-
 
90
# from epel
-
 
91
gparted
-
 
92
NetworkManager-openvpn
-
 
93
NetworkManager-vpnc
-
 
94
vpnc-consoleuser
-
 
95
 
-
 
96
# from elrepo
-
 
97
reiserfs-utils
-
 
98
kmod-reiserfs
-
 
99
kmod-ndiswrapper
-
 
100
 
82
%end
101
%end
83
 
102
 
84
########################################################################
103
########################################################################
85
#
104
#
86
#  LiveCD post install in chroot 
105
#  LiveCD post install in chroot 
Line 614... Line 633...
614
/sbin/chkconfig --add livesys-late
633
/sbin/chkconfig --add livesys-late
615
 
634
 
616
# go ahead and pre-make the man -k cache (#455968)
635
# go ahead and pre-make the man -k cache (#455968)
617
/usr/sbin/makewhatis -w
636
/usr/sbin/makewhatis -w
618
 
637
 
619
# create locate db
-
 
620
/etc/cron.daily/mlocate.cron
-
 
621
 
-
 
622
# save a little bit of space at least...
638
# save a little bit of space at least...
623
rm -f /var/lib/rpm/__db*
639
rm -f /var/lib/rpm/__db*
624
rm -f /boot/initrd*
640
rm -f /boot/initrd*
625
rm -f /boot/initramfs*
641
rm -f /boot/initramfs*
626
# make sure there aren't core files lying around
642
# make sure there aren't core files lying around
Line 637... Line 653...
637
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
653
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
638
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
654
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
639
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl6
655
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl6
640
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-dawson
656
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-dawson
641
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl
657
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl
642
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
658
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
643
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
659
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
644
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
660
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
645
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
661
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
646
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
662
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
647
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-fabian
663
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-fabian
648
 
664
 
649
# evolution is in the gnome launch panel (bad workaround to start thunderbird instead)
665
# evolution is in the gnome launch panel (bad workaround to start thunderbird instead)
650
[ ! -e /usr/bin/evolution ] && ln -s /usr/bin/thunderbird /usr/bin/evolution
666
[ ! -e /usr/bin/evolution ] && ln -s /usr/bin/thunderbird /usr/bin/evolution
651
 
667
 
652
# disable all repos which are not pure sl repos
-
 
653
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/adobe*.repo
-
 
654
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/atrpms*.repo
-
 
655
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/elrepo*.repo
-
 
656
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/epel*.repo
-
 
657
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/rpmforge*.repo
-
 
658
 
-
 
659
# temporarily create /etc/resolv.conf to get dns and yum working in post
-
 
660
echo "nameserver 8.8.8.8"  >  /etc/resolv.conf
-
 
661
echo "nameserver 8.8.4.4"  >> /etc/resolv.conf
-
 
662
 
-
 
663
# install extra software
-
 
664
yum -y --enablerepo=rpmforge install fuse-ntfs-3g
-
 
665
yum -y --enablerepo=rpmforge install ntfsprogs
-
 
666
yum -y --enablerepo=rpmforge install dd_rescue
-
 
667
yum -y --enablerepo=rpmforge install ddrescue
-
 
668
yum -y --enablerepo=rpmforge install iperf
-
 
669
yum -y --enablerepo=rpmforge install rxvt-unicode
-
 
670
yum -y --enablerepo=epel     install gparted
-
 
671
yum -y --enablerepo=epel     install NetworkManager-openvpn
-
 
672
yum -y --enablerepo=epel     install NetworkManager-vpnc
-
 
673
yum -y --enablerepo=elrepo   install reiserfs-utils
-
 
674
yum -y --enablerepo=elrepo   install kmod-reiserfs
-
 
675
#yum -y --enablerepo=rpmforge install testdisk      # 3 MB
-
 
676
 
-
 
677
# clean up yum
668
# clean up yum
678
yum clean all
669
yum clean all
679
 
670
 
680
# remove /etc/resolv.conf again
-
 
681
rm /etc/resolv.conf
-
 
682
 
-
 
683
# workaround avahi segfault (#279301)
671
# workaround avahi segfault (#279301)
684
touch /etc/resolv.conf
672
touch /etc/resolv.conf
685
/sbin/restorecon /etc/resolv.conf
673
/sbin/restorecon /etc/resolv.conf
686
 
674
 
-
 
675
# create locate db
-
 
676
/etc/cron.daily/mlocate.cron
-
 
677
 
687
EOF_post
678
EOF_post
688
 
679
 
689
# run post-install script
680
# run post-install script
690
/bin/bash -x /root/post-install 2>&1 | tee /root/post-install.log
681
/bin/bash -x /root/post-install 2>&1 | tee /root/post-install.log
691
 
682