[lxc-devel] [PATCH] Use 'uname -m' instead of arch

Ryousei Takano takano-ryousei at aist.go.jp
Fri Mar 27 04:50:34 UTC 2009


'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 at aist.go.jp>
---
 scripts/lxc-sshd.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/lxc-sshd.in b/scripts/lxc-sshd.in
index 4a65230..85c7e76 100755
--- a/scripts/lxc-sshd.in
+++ b/scripts/lxc-sshd.in
@@ -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
-- 
1.5.6.3





More information about the lxc-devel mailing list