From 7138f0a79b1f992a664e107c9cf411a25deb6174 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Fri, 2 Apr 2010 14:12:05 -0700 Subject: [PATCH] TBR:Fix build. Shouldn't do fuse stuff if fuse isn't installed on host --- enter_chroot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enter_chroot.sh b/enter_chroot.sh index a056dd445e..374dd8a70e 100755 --- a/enter_chroot.sh +++ b/enter_chroot.sh @@ -146,8 +146,8 @@ function setup_env { # Mount fuse device from host machine into chroot and copy over # corresponding kernel modules. MOUNTED_PATH="$(readlink -f "${FLAGS_chroot}${FUSE_DEVICE}")" - if [ -z "$(mount | grep -F "on ${MOUNTED_PATH} ")" ] - then + if [ -z "$(mount | grep -F "on ${MOUNTED_PATH} ")" ] && \ + [ -c "${FUSE_DEVICE}" ] ; then if [ -c "${FUSE_DEVICE}" ] ; then echo "Mounting fuse device" sudo touch "${MOUNTED_PATH}"