]> 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 18:01:04 +0000 (14:01 -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 4ed197602400a02c6f601f026c707f3e8507f6ff..fe1b1d4a23e937e10318a515c89b8514581053e7 100644 (file)
@@ -677,7 +677,7 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-arch=$(arch)
+arch=$(uname -m)
 eval set -- "$options"
 while true
 do
index a1393c2984dde1f61658c86da4b2952286feb21f..da1207bde32840bbfd89577a8d86b4cdba6ed542 100644 (file)
@@ -1153,7 +1153,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"