templates: switch from arch command to uname -m

Signed-off-by: Michael Werner <xaseron@googlemail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Michael Werner 2014-07-21 20:57:17 +02:00 committed by Stéphane Graber
parent cdd01be26e
commit 4849ab991b
3 changed files with 3 additions and 3 deletions

View File

@ -687,7 +687,7 @@ if [ $? -ne 0 ]; then
exit 1
fi
arch=$(arch)
arch=$(uname -m)
eval set -- "$options"
while true
do

View File

@ -1163,7 +1163,7 @@ if [ $? -ne 0 ]; then
exit 1
fi
arch=$(arch)
arch=$(uname -m)
eval set -- "$options"
while true
do

View 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"