From bc054b1b02fc8f581e8a6fdc59fb7aba5993fc16 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 24 Jan 2013 21:52:38 +0100 Subject: [PATCH] chomp the output of dpkg --print-architecture --- bin/xen-create-image | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/xen-create-image b/bin/xen-create-image index d45fd07..4f1bc44 100755 --- a/bin/xen-create-image +++ b/bin/xen-create-image @@ -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;