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
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
......
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