From 098e3a633d695da3fde347453e836aabb41a8888 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 21 Apr 2013 22:29:58 -0300 Subject: [PATCH] Switch `arch` usage to `uname -m` on base ubuntu lxc template Fixes #53 --- boxes/ubuntu/lxc-template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/ubuntu/lxc-template b/boxes/ubuntu/lxc-template index d4c6c7b..4199e19 100755 --- a/boxes/ubuntu/lxc-template +++ b/boxes/ubuntu/lxc-template @@ -469,7 +469,7 @@ if [ -f /etc/lsb-release ]; then fi fi -arch=$(arch) +arch=$(uname -m) # Code taken from debootstrap if [ -x /usr/bin/dpkg ] && /usr/bin/dpkg --print-architecture >/dev/null 2>&1; then @@ -477,7 +477,7 @@ if [ -x /usr/bin/dpkg ] && /usr/bin/dpkg --print-architecture >/dev/null 2>&1; t elif type udpkg >/dev/null 2>&1 && udpkg --print-architecture >/dev/null 2>&1; then arch=`/usr/bin/udpkg --print-architecture` else - arch=$(arch) + arch=$(uname -m) if [ "$arch" = "i686" ]; then arch="i386" elif [ "$arch" = "x86_64" ]; then