1 # This is the post-configuration section of the kickstart
2 # installer. It runs inside the live CD chroot while it is
3 # being created (after all the packages have been installed)
4 # but before we make the ISO.
6 # Copyright (C) 2007 Red Hat Inc.
7 # Written by Richard W.M. Jones <rjones@redhat.com>
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 # This is the virt-p2v script.
27 cat > /usr/bin/virt-p2v.ml << '__EOF1234__'
31 chmod 0755 /usr/bin/virt-p2v.ml
32 /sbin/restorecon /usr/bin/virt-p2v.ml
34 # Install custom inittab.
35 cat > /etc/inittab << '__EOF4123__'
39 # Install custom lvm.conf. The script selects this by adjusting
40 # $LVM_SYSTEM_DIR environment variable at the right time.
41 cp -a /etc/lvm /etc/lvm.new
42 cat > /etc/lvm.new/lvm.conf << '__EOF4312__'
46 # Turn off firstboot for livecd boots.
47 echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
49 # Don't start yum-updatesd for livecd boots.
50 /sbin/chkconfig --level 345 yum-updatesd off
52 # Don't start cron/at as they tend to spawn things which are
53 # disk intensive that are painful on a live image.
54 /sbin/chkconfig --level 345 crond off
55 /sbin/chkconfig --level 345 atd off
56 /sbin/chkconfig --level 345 anacron off
57 /sbin/chkconfig --level 345 readahead_early off
58 /sbin/chkconfig --level 345 readahead_later off
60 # Stopgap fix for RH #217966; should be fixed in HAL instead
61 touch /media/.hal-mtab
63 # Make some mountpoints.