From: Neil Williams Date: Tue, 26 Aug 2014 20:31:20 +0000 (-0700) Subject: Use the dpkg architecture as the default X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=7d44f8bbab3383d4b10ead404def7d9546707ce6;p=forks%2Fvmdebootstrap.git Use the dpkg architecture as the default --- diff --git a/vmdebootstrap b/vmdebootstrap index 5fd2a09..67187f4 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -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',