From: Michael Werner Date: Mon, 21 Jul 2014 18:57:17 +0000 (+0200) Subject: templates: switch from arch command to uname -m X-Git-Tag: lxc-1.1.0.alpha2~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4849ab991b31b90fab06848366f08d689983ad89;p=thirdparty%2Flxc.git templates: switch from arch command to uname -m Signed-off-by: Michael Werner Acked-by: Stéphane Graber --- diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 38c589b14..69d3d4fad 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -687,7 +687,7 @@ if [ $? -ne 0 ]; then exit 1 fi -arch=$(arch) +arch=$(uname -m) eval set -- "$options" while true do diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index b9741ac3e..a56e7ec48 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -1163,7 +1163,7 @@ if [ $? -ne 0 ]; then exit 1 fi -arch=$(arch) +arch=$(uname -m) eval set -- "$options" while true do diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in index 5a87866cc..c6fa215c1 100644 --- a/templates/lxc-gentoo.in +++ b/templates/lxc-gentoo.in @@ -79,7 +79,7 @@ die() set_default_arch() { printf "### set_default_arch: default arch/variant autodetect...\n" - arch=$(arch) + arch=$(uname -m) if [[ $arch =~ i.86 ]]; then arch="x86" variant="x86"