]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Use 'uname -m' instead of arch
authorRyousei Takano <takano-ryousei@aist.go.jp>
Fri, 27 Mar 2009 04:50:34 +0000 (13:50 +0900)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 27 Mar 2009 10:12:45 +0000 (11:12 +0100)
'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>
scripts/lxc-sshd.in

index 4a65230614c59f205763a10e2e6ba2db058a4219..85c7e761fa1375a23d27403a5e56823059a8ea65 100755 (executable)
@@ -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