diff --git a/bin/xen-resize-guest b/bin/xen-resize-guest index 165cbbd..043c20d 100755 --- a/bin/xen-resize-guest +++ b/bin/xen-resize-guest @@ -301,6 +301,9 @@ sub readConfigurationFile { my ($file) = (@_); + # Don't read the file if it doesn't exist. + return if ( !-e $file ); + open( FILE, "<", $file ) or die "Cannot read file '$file' - $!"; my $line = "";