]> xenbits.xensource.com Git - people/dariof/xen-tools.git/commitdiff
chomp the output of dpkg --print-architecture
authorAxel Beckert <abe@deuxchevaux.org>
Thu, 24 Jan 2013 20:52:38 +0000 (21:52 +0100)
committerAxel Beckert <abe@deuxchevaux.org>
Thu, 24 Jan 2013 22:14:34 +0000 (23:14 +0100)
bin/xen-create-image

index d45fd07976eb0f31063f02e00c6980a88189d176..4f1bc44e1de225eb4ffb1efb720068eb9dcf494f 100755 (executable)
@@ -1338,6 +1338,7 @@ sub setupDefaultOptions
     $CONFIG{ 'apt_proxy' }     = '';
     $CONFIG{ 'arch' }          =
         which('dpkg') ? `dpkg --print-architecture` : '';
+    chomp($CONFIG{ 'arch' });
     $CONFIG{ 'fs' }            = 'ext3';
     $CONFIG{ 'force' }         = 0;
     $CONFIG{ 'no_xen_ok' }     = 0;