From c4e083b4b57a8b030fa4a14c3c9e694190900f14 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 20 Dec 2005 00:35:10 +0000 Subject: [PATCH] 2005-12-20 00:35:10 by steve Text updates for --boot. --- xen-create-image | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xen-create-image b/xen-create-image index fadbc61..3aff870 100755 --- a/xen-create-image +++ b/xen-create-image @@ -13,6 +13,7 @@ --manual Read this scripts manual. Size / General options: + --boot Boot the new instance after creating it. --dir Specify where the output images should go. --fs Specify the filesystem type to use. --memory Setup the amount of memory allocated to the instance. @@ -202,7 +203,7 @@ broadcast = 255.255.255.0 -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.34 2005-12-20 00:17:55 steve Exp $ + $Id: xen-create-image,v 1.35 2005-12-20 00:35:10 steve Exp $ =cut @@ -623,9 +624,13 @@ EOEND # if ( $CONFIG{'boot'} ) { + print "\n\nBooting new virtual image: $CONFIG{'hostname'}\n"; + print "\n\n"; + my $pid = fork(); if ( $pid ) { + exit; } else @@ -635,6 +640,12 @@ if ( $CONFIG{'boot'} ) } +# +# End of script. +# +exit; + + =head2 readConfigurationFile