TBR:Fix build. Shouldn't do fuse stuff if fuse isn't installed on host

This commit is contained in:
Chris Sosa 2010-04-02 14:12:05 -07:00
parent aa1a7fd63d
commit 7138f0a79b

View File

@ -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}"