From dfe112bce7ea8a19f10f1b24dd726d06b82bfed8 Mon Sep 17 00:00:00 2001 From: Michael Werner Date: Mon, 21 Jul 2014 20:57:17 +0200 Subject: [PATCH] templates: switch from arch command to uname -m MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Werner Acked-by: Stéphane Graber --- templates/lxc-centos.in | 2 +- templates/lxc-fedora.in | 2 +- templates/lxc-gentoo.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 4ed197602..fe1b1d4a2 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -677,7 +677,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 a1393c298..da1207bde 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -1153,7 +1153,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" -- 2.47.2