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.0.6~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfe112bce7ea8a19f10f1b24dd726d06b82bfed8;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 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"