From be306920618d743fed0cafab42e4bfc090c54e2d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 14 Mar 2008 12:12:28 +0000 Subject: [PATCH] Only show the install source if there is one. --- bin/xen-create-image | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/xen-create-image b/bin/xen-create-image index 7464fef..f9e0b9a 100755 --- a/bin/xen-create-image +++ b/bin/xen-create-image @@ -2972,7 +2972,16 @@ sub installSystem # Show the user what they are installing # logprint( "Installation method: $CONFIG{'install-method'}\n" ); - logprint( "(Source: $CONFIG{'install-source'})\n" ) if defined( $CONFIG{'install-source'} ); + + # + # And where from, if relevant. + # + if ( ( lc($CONFIG{'install-method'}) eq "copy" ) || + ( lc($CONFIG{'install-method'}) eq "image-server" ) || + ( lc($CONFIG{'install-method'}) eq "tar" ) ) + { + logprint( "(Source: $CONFIG{'install-source'})\n" ); + } #