]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: switch from arch command to uname -m
authorMichael Werner <xaseron@googlemail.com>
Mon, 21 Jul 2014 18:57:17 +0000 (20:57 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 8 Aug 2014 16:12:21 +0000 (12:12 -0400)
Signed-off-by: Michael Werner <xaseron@googlemail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-centos.in
templates/lxc-fedora.in
templates/lxc-gentoo.in

index 38c589b1456d73627ea894d59293d813ad2a6269..69d3d4fad1b5741fb63479a13168d12757614821 100644 (file)
@@ -687,7 +687,7 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-arch=$(arch)
+arch=$(uname -m)
 eval set -- "$options"
 while true
 do
index b9741ac3e28d95afac0e9d9ec8edfe0678c0a8a6..a56e7ec48845ffabe24818e91868ec5da42af2b1 100644 (file)
@@ -1163,7 +1163,7 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-arch=$(arch)
+arch=$(uname -m)
 eval set -- "$options"
 while true
 do
index 5a87866cc19e718618ec06ad37f610545e028fd3..c6fa215c16f89cb5c29afe577451598c58f3c6a2 100644 (file)
@@ -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"