From 82d2f2c2787ecc68008196a970bba6f8e5c33eec Mon Sep 17 00:00:00 2001 From: Edvinas Aleksejonokas Date: Thu, 16 Apr 2015 12:35:14 +0300 Subject: [PATCH] Create fuse device to use bindfs BindFS requires fuse access in order to proceed with the mount. To get fuse access bindfs needs '/dev/fuse' to exist. When BindFS is used through vagrant and vagrant-bindfs plugin it tries to use modprobe to load fuse module, but this is impossible because loading of kernel modules is not possible inside lxc. Be aware that fuse kernel module must be loaded on the host machine. --- debian/vagrant-lxc-fixes.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/vagrant-lxc-fixes.sh b/debian/vagrant-lxc-fixes.sh index affa6f0..5f85806 100755 --- a/debian/vagrant-lxc-fixes.sh +++ b/debian/vagrant-lxc-fixes.sh @@ -31,3 +31,7 @@ fi utils.lxc.attach /usr/sbin/locale-gen ${LANG} utils.lxc.attach update-locale LANG=${LANG} + +# Fix to allow bindfs +utils.lxc.attach ln -s /bin/true /sbin/modprobe +utils.lxc.attach mknod -m 666 /dev/fuse c 10 229