]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
ts-debian-install: pass 'Mb' as memory / swap size
authorWei Liu <wei.liu2@citrix.com>
Fri, 20 Sep 2013 08:49:50 +0000 (09:49 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 14 Oct 2013 17:04:51 +0000 (18:04 +0100)
The original code passed 'M' to memory which triggers Debian bug #691320
in Wheezy.

Passing 'Mb' should work both for Squeeze and Wheezy.

Also pass 'Mb' to swap size for consistency.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
ts-debian-install

index 28f95cc66fc6928c7d1333aac16a8ea7c60cd011..519edc96cb0a72b5cf18b704b4cd9fe99000d9c9 100755 (executable)
@@ -66,7 +66,7 @@ sub ginstall () {
     target_cmd_root($ho, <<END, 2000);
         xen-create-image \\
             --dhcp --mac $gho->{Ether} \\
-           --memory ${ram_mb}M --swap ${swap_mb}M \\
+            --memory ${ram_mb}Mb --swap ${swap_mb}Mb \\
             --dist $gsuite \\
             --mirror http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} \\
             --hostname $gho->{Name} \\