]> xenbits.xensource.com Git - people/dariof/xen-tools.git/commitdiff
Support rinse 2.0
authorAxel Beckert <abe@deuxchevaux.org>
Thu, 7 Jun 2012 12:48:47 +0000 (14:48 +0200)
committerAxel Beckert <abe@deuxchevaux.org>
Thu, 7 Jun 2012 12:50:12 +0000 (14:50 +0200)
With rinse 2.0 the --arch option in mandatory. Let it default to the
Dom0's architecture.

bin/xt-install-image
debian/changelog

index 2582bc5f215d2ddf08c2b0eba61bd68bc561d24b..078381fba0d10504bfe67dbf2292a7d1f827bb0a 100755 (executable)
@@ -821,7 +821,24 @@ sub do_rinse
     {
         $command .= " --arch $CONFIG{'arch'}";
     }
+    else
+    {
+        my $uname_machine = `uname -m`;
+        chomp($uname_machine);
 
+        if ($uname_machine eq 'x86_64')
+        {
+            $command .= " --arch amd64";
+        }
+        elsif ($uname_machine =~ /^i[3-6]86$/) {
+            $command .= " --arch i386";
+        }
+        else
+        {
+            die "Local architecture ($uname_machine) not supported by rinse.\n".
+                "Please choose a supported installation architecture (i386 or amd64) explicitly."
+        }
+    }
 
     #
     #  Propogate the verbosity setting.
index 74d71b50afb3024b269e826999565bd846b65fbb..a051d8fa540c2dc550669759044df6998af77a8f 100644 (file)
@@ -7,6 +7,7 @@ xen-tools (4.3~dev-1) UNRELEASED; urgency=low
     - Supports creating Ubuntu 12.04 Precise and 12.10 Quantal DomUs
     - Supports creating CentOS 6 DomUs (Thanks Johan Schurer)
       + Recommend rinse >= 1.9.1-1
+    - Supports rinse 2.0
     - Updated mirror list for discontinued releases of Debian and Ubuntu
     - Workaround for missing unit parsing in xen-create-nfs (Closes:
       #648814)