Use 'uname -m' instead of arch

'uname -m' seems to be more general to get the machine's architecture
type.  Ubunbu 8.10 (and also all debian based distros?) does not have
arch(1).

Signed-off-by: Ryousei Takano <takano-ryousei@aist.go.jp>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
Ryousei Takano 2009-03-27 13:50:34 +09:00 committed by Daniel Lezcano
parent b44cb779a1
commit e65b846976

View File

@ -401,7 +401,7 @@ cat <<EOF > $MNTFILE
/sbin $(pwd)/$ROOTFS/sbin none ro,bind 0 0
EOF
if [ "$(arch)" = "x86_64" ]; then
if [ "$(uname -m)" = "x86_64" ]; then
cat <<EOF >> $MNTFILE
/lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0
EOF