From b3a9fe8b909e8dfae6b28cb8ef9131ced4b6265d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Mon, 28 Sep 2015 15:43:10 -0400 Subject: [PATCH] lxc-debian: We should only check the kernel architecture. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The dpkg architecture isn't relevant to LXC, only the kernel arch is. Signed-off-by: Gergely Szasz Acked-by: Stéphane Graber --- templates/lxc-debian.in | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 3790165bc..54393caf2 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -497,17 +497,13 @@ if [ $? -ne 0 ]; then fi eval set -- "$options" -if which dpkg > /dev/null 2>&1 ; then - arch=$(dpkg --print-architecture) -else - arch=$(uname -m) - if [ "$arch" = "i686" ]; then - arch="i386" - elif [ "$arch" = "x86_64" ]; then - arch="amd64" - elif [ "$arch" = "armv7l" ]; then - arch="armhf" - fi +arch=$(uname -m) +if [ "$arch" = "i686" ]; then + arch="i386" +elif [ "$arch" = "x86_64" ]; then + arch="amd64" +elif [ "$arch" = "armv7l" ]; then + arch="armhf" fi hostarch=$arch -- 2.47.3