X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=livecd-post.sh.in;h=2f8d7e38adcb7490713d292ea5ba99284e936f61;hb=1835c920726e5ce4f012ba1fc4cba0d33c9b316a;hp=82427ae24e74187b8bc1baaee5b51c2da0116f54;hpb=502d99a2567724ac5153a0eaa64bc13e8d13ce24;p=virt-p2v.git diff --git a/livecd-post.sh.in b/livecd-post.sh.in index 82427ae..2f8d7e3 100644 --- a/livecd-post.sh.in +++ b/livecd-post.sh.in @@ -6,35 +6,41 @@ # Create a 'p2v' init script which runs last thing during the # boot. -cat > /etc/init.d/p2v << '__EOF__' +cat > /etc/init.d/p2v << '__EOF4321__' @P2V.INIT@ -__EOF__ +__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 -cat > /usr/bin/virt-p2v.sh << '__EOF__' +cat > /usr/bin/virt-p2v.sh << '__EOF1234__' @VIRT-P2V.SH@ -__EOF__ +__EOF1234__ chmod 0755 /usr/bin/virt-p2v.sh /sbin/restorecon /usr/bin/virt-p2v.sh +# Install custom inittab. +cat > /etc/inittab << '__EOF4123__' +@INITTAB@ +__EOF4123__ + + # Turn off firstboot for livecd boots. echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot # Don't start yum-updatesd for livecd boots. -chkconfig --level 345 yum-updatesd off +/sbin/chkconfig --level 345 yum-updatesd off # Don't start cron/at as they tend to spawn things which are # disk intensive that are painful on a live image. -chkconfig --level 345 crond off -chkconfig --level 345 atd off -chkconfig --level 345 anacron off -chkconfig --level 345 readahead_early off -chkconfig --level 345 readahead_later off +/sbin/chkconfig --level 345 crond off +/sbin/chkconfig --level 345 atd off +/sbin/chkconfig --level 345 anacron off +/sbin/chkconfig --level 345 readahead_early off +/sbin/chkconfig --level 345 readahead_later off # Stopgap fix for RH #217966; should be fixed in HAL instead touch /media/.hal-mtab