echo "Closing the chroot..."
# Fremantle's fuser command is broken.
-# Using Debian's one instead.
+# We can either use Debian's one instead (as gfuser),
+# or we can use the workaround: "cd /proc" first.
echo "...closing chroot apps..."
if [ -f "/bin/gfuser" ] ; then
gfuser -m "$CHROOT" -k
else
+ cd /proc
fuser -m "$CHROOT" -k
fi
else
if [ -f "/bin/gfuser" ] ; then
gfuser "$CHROOT" -k
else
+ cd /proc
fuser "$CHROOT" -k
fi
fi