mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 07:50:06 +00:00
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:
parent
b44cb779a1
commit
e65b846976
@ -401,7 +401,7 @@ cat <<EOF > $MNTFILE
|
|||||||
/sbin $(pwd)/$ROOTFS/sbin none ro,bind 0 0
|
/sbin $(pwd)/$ROOTFS/sbin none ro,bind 0 0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ "$(arch)" = "x86_64" ]; then
|
if [ "$(uname -m)" = "x86_64" ]; then
|
||||||
cat <<EOF >> $MNTFILE
|
cat <<EOF >> $MNTFILE
|
||||||
/lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0
|
/lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user