summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-12-26 11:00:46 +0200
committerLars Wirzenius <liw@liw.fi>2014-12-26 11:00:46 +0200
commitc75952d73b61942b4f8b9f00e89ca1884422b073 (patch)
tree3533c1a764b0c4d0d575c19bec679515a673da73 /yarns
parentcad6a5abbe195c384b45e1a1ca363cce07a773dc (diff)
downloadobnam-c75952d73b61942b4f8b9f00e89ca1884422b073.tar.gz
Improve can-use-fuse test
Diffstat (limited to 'yarns')
-rw-r--r--yarns/9000-implements.yarn11
1 files changed, 11 insertions, 0 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn
index e26c4e5c..56f96912 100644
--- a/yarns/9000-implements.yarn
+++ b/yarns/9000-implements.yarn
@@ -627,6 +627,17 @@ or second quarter of 2015.)
fi
echo "fusermount found"
+ # We also must be able to read from /dev/fuse. It might not exist,
+ # and if it does, the kernel module providing it might not be
+ # loaded. So we read 0 bytes from it, and if that works, it should
+ # be OK.
+ if ! dd if=/dev/fuse of=/dev/null bs=1 count=0
+ then
+ echo "Can't read from /dev/null. User can't use FUSE." 1>&2
+ exit 1
+ fi
+ echo "Can read from /dev/fuse."
+
# Are we on Debian? If so, /etc/debian_version exists.
# If it doesn't, we're done.
if [ ! -e /etc/debian_version ]