diff --git a/xen-duplicate-image b/xen-duplicate-image index 111374d..ef7a262 100755 --- a/xen-duplicate-image +++ b/xen-duplicate-image @@ -100,7 +100,7 @@ Specify the virtual instance that we should copy. -- http://www.steve.org.uk/ - $Id: xen-duplicate-image,v 1.2 2005-12-19 14:54:40 steve Exp $ + $Id: xen-duplicate-image,v 1.3 2005-12-19 15:04:25 steve Exp $ =cut @@ -488,6 +488,12 @@ EOF } + # Strip trailing Mb from the memory size. + if ( $CONFIG{'memory'} =~ /^(\d+)Mb*$/i ) + { + $CONFIG{'memory'} = $1; + } + # # Only one of DHCP / IP is required. #