Commit b3a9fe8b by Stéphane Graber

lxc-debian: We should only check the kernel architecture.

The dpkg architecture isn't relevant to LXC, only the kernel arch is. Signed-off-by: 's avatarGergely Szasz <szaszg@hu.inter.net> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 61ef7bcc
...@@ -497,17 +497,13 @@ if [ $? -ne 0 ]; then ...@@ -497,17 +497,13 @@ if [ $? -ne 0 ]; then
fi fi
eval set -- "$options" eval set -- "$options"
if which dpkg > /dev/null 2>&1 ; then arch=$(uname -m)
arch=$(dpkg --print-architecture) if [ "$arch" = "i686" ]; then
else arch="i386"
arch=$(uname -m) elif [ "$arch" = "x86_64" ]; then
if [ "$arch" = "i686" ]; then arch="amd64"
arch="i386" elif [ "$arch" = "armv7l" ]; then
elif [ "$arch" = "x86_64" ]; then arch="armhf"
arch="amd64"
elif [ "$arch" = "armv7l" ]; then
arch="armhf"
fi
fi fi
hostarch=$arch hostarch=$arch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment