X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=livecd-post.sh.in;h=4e3eee92704552e76305c22ae05135147a94d84f;hb=09eaf293724cc1ed6100f5a8a97cecf8cc007956;hp=985dda8914cac973e3c0b0ca9d4f78fdfc654038;hpb=6d37b5f61c6cd4115197dc25e6d7ab571fcb3a54;p=virt-p2v.git diff --git a/livecd-post.sh.in b/livecd-post.sh.in index 985dda8..4e3eee9 100644 --- a/livecd-post.sh.in +++ b/livecd-post.sh.in @@ -2,18 +2,27 @@ # installer. It runs inside the live CD chroot while it is # being created (after all the packages have been installed) # but before we make the ISO. +# +# Copyright (C) 2007 Red Hat Inc. +# Written by Richard W.M. Jones +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# $Id$ -# Create a 'p2v' init script which runs last thing during the -# boot. - -cat > /etc/init.d/p2v << '__EOF4321__' -@P2V.INIT@ -__EOF4321__ - -# Make the 'p2v' script run when the live CD boots. -chmod 0755 /etc/init.d/p2v -/sbin/restorecon /etc/init.d/p2v -/sbin/chkconfig --add p2v +# This is the virt-p2v shell script. cat > /usr/bin/virt-p2v.sh << '__EOF1234__' @VIRT-P2V.SH@ @@ -51,4 +60,6 @@ echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot touch /media/.hal-mtab # Make some mountpoints. -mkdir /mnt/root \ No newline at end of file +mkdir /mnt/root + +%end