diff --git a/bin/xen-create-image b/bin/xen-create-image index 9fc6b6f..7d2e573 100755 --- a/bin/xen-create-image +++ b/bin/xen-create-image @@ -596,7 +596,7 @@ Install an X11 server, using VNC and XDM -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.176 2007-08-08 22:43:17 steve Exp $ + $Id: xen-create-image,v 1.177 2007-08-08 22:44:17 steve Exp $ =cut @@ -1377,7 +1377,7 @@ sub parseCommandLineArguments if ( $VERSION ) { - my $REVISION = '$Revision: 1.176 $'; + my $REVISION = '$Revision: 1.177 $'; if ( $REVISION =~ /1.([0-9.]+) / ) { $REVISION = $1; @@ -3231,13 +3231,9 @@ sub setupRootPassword { system( "chroot $MOUNT_POINT /usr/bin/passwd" ); } - elsif ( -x $MOUNT_POINT . "/usr/sbin/passwd" ) - { - system( "chroot $MOUNT_POINT /usr/sbin/passwd" ); - } else { - logprint( "'passwd' command not found on the new install\n" ); + logprint( "'passwd' command not found in the new install.\n" ); } }