From c75952d73b61942b4f8b9f00e89ca1884422b073 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 26 Dec 2014 11:00:46 +0200 Subject: Improve can-use-fuse test --- yarns/9000-implements.yarn | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'yarns') 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 ] -- cgit v1.2.1