1 # LiveCD kickstart file for virt-p2v
4 # Copyright (C) 2007-2008 Red Hat Inc.
5 # Written by Richard W.M. Jones <rjones@redhat.com>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 keyboard @CD_KEYBOARD@
23 timezone @CD_TIMEZONE@
24 auth --useshadow --enablemd5
28 repo --name=released --baseurl=@CD_BASE_URL@
29 #repo --name=released --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-@CD_BASE@&arch=@CD_ARCH@
41 # dd, sleep, sync, etc.
51 # For remote communications
55 # For the shell script
70 # For network configuration
73 # Some other generally useful packages
84 # For PXE boots we need tftp
90 # These files have to be copied from the build directory into the
92 # http://www.mail-archive.com/fedora-livecd-list@redhat.com/msg01470.html
94 # Just check everything exists, because kickstart will not give
95 # an error if files or paths are missing.
96 if test "x$INSTALL_ROOT" = "x"; then ERROR=1; fi
97 if ! test -d "$INSTALL_ROOT/usr/bin"; then ERROR=1; fi
98 if ! test -d "@abs_top_srcdir@"; then ERROR=1; fi
99 if ! test -d "@abs_top_srcdir@/extras"; then ERROR=1; fi
100 if ! test -f "@abs_top_srcdir@/virt-p2v"; then ERROR=1; fi
102 if test "x$ERROR" = "x1"; then
103 echo "**************************************************"
104 echo "**************************************************"
105 echo "**************************************************"
106 echo "Missing files or directories found. This ISO will be bad."
107 echo "**************************************************"
108 echo "**************************************************"
109 echo "**************************************************"
110 # Exit 1 won't stop anything, but it makes me feel better.
114 install -m 0755 -o root -g root \
115 @abs_top_srcdir@/virt-p2v \
116 @abs_top_srcdir@/virt-p2v-update-wrapper \
117 @abs_top_srcdir@/iso-attach \
118 $INSTALL_ROOT/usr/bin
120 install -m 0644 -o root -g root @abs_top_srcdir@/inittab \
123 cp -a $INSTALL_ROOT/etc/lvm $INSTALL_ROOT/etc/lvm.new
124 install -m 0644 -o root -g root @abs_top_srcdir@/lvm.conf \
125 $INSTALL_ROOT/etc/lvm.new
127 # Copy everything under extras to the squashfs /extras.
128 cp -a @abs_top_srcdir@/extras $INSTALL_ROOT/extras
134 # Restore SELinux permissions on installed binaries.
135 /sbin/restorecon /usr/bin/virt-p2v
136 /sbin/restorecon /usr/bin/virt-p2v-update-wrapper
137 /sbin/restorecon /usr/bin/iso-attach
139 # Turn off firstboot for livecd boots.
140 echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
142 # Don't start yum-updatesd for livecd boots.
143 /sbin/chkconfig --level 345 yum-updatesd off
145 # Don't start cron/at as they tend to spawn things which are
146 # disk intensive that are painful on a live image.
147 /sbin/chkconfig --level 345 crond off
148 /sbin/chkconfig --level 345 atd off
149 /sbin/chkconfig --level 345 anacron off
150 /sbin/chkconfig --level 345 readahead_early off
151 /sbin/chkconfig --level 345 readahead_later off
153 # Stopgap fix for RH #217966; should be fixed in HAL instead
154 touch /media/.hal-mtab
156 # Make some mountpoints.