From e65b846976ddacdce5774bb0ba11c7738e896cf1 Mon Sep 17 00:00:00 2001 From: Ryousei Takano Date: Fri, 27 Mar 2009 13:50:34 +0900 Subject: [PATCH] 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 Signed-off-by: Daniel Lezcano --- scripts/lxc-sshd.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lxc-sshd.in b/scripts/lxc-sshd.in index 4a6523061..85c7e761f 100755 --- a/scripts/lxc-sshd.in +++ b/scripts/lxc-sshd.in @@ -401,7 +401,7 @@ cat < $MNTFILE /sbin $(pwd)/$ROOTFS/sbin none ro,bind 0 0 EOF -if [ "$(arch)" = "x86_64" ]; then +if [ "$(uname -m)" = "x86_64" ]; then cat <> $MNTFILE /lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0 EOF -- 2.47.2