]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Use the dpkg architecture as the default
authorNeil Williams <codehelp@debian.org>
Tue, 26 Aug 2014 20:31:20 +0000 (13:31 -0700)
committerNeil Williams <codehelp@debian.org>
Tue, 26 Aug 2014 20:31:20 +0000 (13:31 -0700)
vmdebootstrap

index 5fd2a096c04fe189da1a96d482fcbee2e4af1057..67187f4facad9df35fa37491d53e4b48c18c04f9 100755 (executable)
@@ -33,7 +33,9 @@ __version__ = '0.3'
 class VmDebootstrap(cliapp.Application):
 
     def add_settings(self):
-        default_arch = 'amd64'
+        default_arch = self.runcmd(
+            ["dpkg", "--print-architecture"],
+            ignore_fail=False).strip()
 
         self.settings.boolean(['verbose'], 'report what is going on')
         self.settings.string(['image'], 'put created disk image in FILE',