From 7d44f8bbab3383d4b10ead404def7d9546707ce6 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Tue, 26 Aug 2014 13:31:20 -0700 Subject: [PATCH] Use the dpkg architecture as the default --- vmdebootstrap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', -- 2.39.2