Subversion Repositories livecd

Rev

Rev 291 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 291 Rev 292
Line 38... Line 38...
38
@core
38
@core
39
@graphical-admin-tools
39
@graphical-admin-tools
40
@network-file-system-client
40
@network-file-system-client
41
@network-tools
41
@network-tools
42
# package added to @network-tools
42
# package added to @network-tools
43
nmap
43
#nmap
44
@remote-desktop-clients
44
@remote-desktop-clients
45
# packages added to @remote-desktop-clients
45
# packages added to @remote-desktop-clients
46
rdesktop
46
rdesktop
47
tsclient
47
tsclient
48
@x11
48
@x11
Line 51... Line 51...
51
# other usefull packages
51
# other usefull packages
52
busybox
52
busybox
53
mailx
53
mailx
54
memtest86+
54
memtest86+
55
livecd-tools
55
livecd-tools
-
 
56
fuse
56
 
57
 
57
# livecd bits to set up the livecd and be able to install
58
# livecd bits to set up the livecd and be able to install
58
anaconda
59
anaconda
59
device-mapper-multipath
60
device-mapper-multipath
60
isomd5sum
61
isomd5sum
61
 
62
 
-
 
63
# yum-conf for additional repos
-
 
64
yum-conf-adobe 
-
 
65
yum-conf-atrpms 
-
 
66
yum-conf-elrepo 
-
 
67
yum-conf-epel 
-
 
68
yum-conf-rpmforge
-
 
69
 
62
%end
70
%end
63
 
71
 
64
########################################################################
72
########################################################################
65
#
73
#
66
#  LiveCD post install in chroot 
74
#  LiveCD post install in chroot 
Line 577... Line 585...
577
#***********************************************************************
585
#***********************************************************************
578
 
586
 
579
 
587
 
580
#***********************************************************************
588
#***********************************************************************
581
# Configure the LiveCD
589
# Configure the LiveCD
582
# Everthing configured here will survive LiveCD install to harddisk !
590
# Everything configured here will survive LiveCD install to harddisk !
583
#***********************************************************************
591
#***********************************************************************
584
 
592
 
585
echo "Configure the LiveCD"
593
echo "Configure the LiveCD"
586
 
594
 
587
# workaround avahi segfault (#279301)
-
 
588
touch /etc/resolv.conf
-
 
589
/sbin/restorecon /etc/resolv.conf
-
 
590
 
595
 
591
chmod 755 /etc/rc.d/init.d/livesys
596
chmod 755 /etc/rc.d/init.d/livesys
592
/sbin/restorecon /etc/rc.d/init.d/livesys
597
/sbin/restorecon /etc/rc.d/init.d/livesys
593
/sbin/chkconfig --add livesys
598
/sbin/chkconfig --add livesys
594
 
599
 
Line 607... Line 612...
607
rm -f /boot/initrd*
612
rm -f /boot/initrd*
608
rm -f /boot/initramfs*
613
rm -f /boot/initramfs*
609
# make sure there aren't core files lying around
614
# make sure there aren't core files lying around
610
rm -f /core*
615
rm -f /core*
611
 
616
 
612
# clean up yum
-
 
613
yum clean all
-
 
614
 
-
 
615
# convince readahead not to collect
617
# convince readahead not to collect
616
rm -f /.readahead_collect
618
rm -f /.readahead_collect
617
touch /var/lib/readahead/early.sorted
619
touch /var/lib/readahead/early.sorted
618
 
620
 
619
# workaround clock syncing on shutdown that we don't want (#297421)
621
# workaround clock syncing on shutdown that we don't want (#297421)
Line 623... Line 625...
623
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
625
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
624
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
626
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
625
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl6
627
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl6
626
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-dawson
628
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-dawson
627
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl
629
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sl
-
 
630
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
-
 
631
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
-
 
632
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
-
 
633
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
-
 
634
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
-
 
635
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-fabian
628
 
636
 
629
# evolution is in the gnome launch panel (bad workaround to start thunderbird instead)
637
# evolution is in the gnome launch panel (bad workaround to start thunderbird instead)
630
[ ! -e /usr/bin/evolution ] && ln -s /usr/bin/thunderbird /usr/bin/evolution
638
[ ! -e /usr/bin/evolution ] && ln -s /usr/bin/thunderbird /usr/bin/evolution
631
 
639
 
-
 
640
# disable all repos which are not pure sl repos
-
 
641
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/adobe*.repo
-
 
642
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/atrpms*.repo
-
 
643
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/elrepo*.repo
-
 
644
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/epel*.repo
-
 
645
sed -i "s|^enabled.*|enabled=0|" /etc/yum.repos.d/rpmforge*.repo
-
 
646
 
-
 
647
# temporarily create /etc/resolv.conf to get dns and yum working in post
-
 
648
echo "nameserver 8.8.8.8"  >  /etc/resolv.conf
-
 
649
echo "nameserver 8.8.4.4"  >> /etc/resolv.conf
-
 
650
 
-
 
651
# install extra software
-
 
652
yum -y --enablerepo=rpmforge install fuse-ntfs-3g
-
 
653
yum -y --enablerepo=rpmforge install ntfsprogs
-
 
654
yum -y --enablerepo=rpmforge install dd_rescue
-
 
655
yum -y --enablerepo=rpmforge install ddrescue
-
 
656
yum -y --enablerepo=rpmforge install iperf
-
 
657
yum -y --enablerepo=rpmforge install rxvt-unicode
-
 
658
yum -y --enablerepo=epel     install gparted
-
 
659
yum -y --enablerepo=epel     install NetworkManager-openvpn
-
 
660
yum -y --enablerepo=epel     install NetworkManager-vpnc
-
 
661
yum -y --enablerepo=elrepo   install reiserfs-utils
-
 
662
yum -y --enablerepo=elrepo   install kmod-reiserfs
-
 
663
#yum -y --enablerepo=rpmforge install testdisk      # 3 MB
-
 
664
 
-
 
665
# clean up yum
-
 
666
yum clean all
-
 
667
 
-
 
668
# remove /etc/resolv.conf again
-
 
669
rm /etc/resolv.conf
-
 
670
 
-
 
671
# workaround avahi segfault (#279301)
-
 
672
touch /etc/resolv.conf
-
 
673
/sbin/restorecon /etc/resolv.conf
-
 
674
 
632
EOF_post
675
EOF_post
633
 
676
 
634
# run post-install script
677
# run post-install script
635
/bin/bash -x /root/post-install 2>&1 | tee /root/post-install.log
678
/bin/bash -x /root/post-install 2>&1 | tee /root/post-install.log
636
 
679
 
Line 658... Line 701...
658
#!/bin/bash
701
#!/bin/bash
659
 
702
 
660
# Copy licensing information
703
# Copy licensing information
661
cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL
704
cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL
662
 
705
 
663
# add livecd-iso-to-disk utility on the LiveCD
-
 
664
# only works on x86, x86_64
-
 
665
if [ "\$(uname -i)" = "i386" -o "\$(uname -i)" = "x86_64" ]; then
-
 
666
  if [ ! -d \$LIVE_ROOT/LiveOS ]; then mkdir -p \$LIVE_ROOT/LiveOS ; fi
-
 
667
  cp /usr/bin/livecd-iso-to-disk \$LIVE_ROOT/LiveOS
-
 
668
fi
-
 
669
 
-
 
670
# customize boot menu entries
706
# customize boot menu entries
671
grep -B4 'menu default'  \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/default.txt
707
grep -B4 'menu default'  \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/default.txt
672
grep -B3 'xdriver=vesa'  \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/basicvideo.txt
708
grep -B3 'xdriver=vesa'  \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/basicvideo.txt
673
grep -A3 'label check0'  \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/check.txt
709
grep -A3 'label check0'  \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/check.txt
674
grep -A2 'label memtest' \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/memtest.txt
710
grep -A2 'label memtest' \$LIVE_ROOT/isolinux/isolinux.cfg > \$LIVE_ROOT/isolinux/memtest.txt