diff options
-rwxr-xr-x | src/initramfs/scripts/init | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/initramfs/scripts/init b/src/initramfs/scripts/init index bd5e959b..e83dd1c2 100755 --- a/src/initramfs/scripts/init +++ b/src/initramfs/scripts/init @@ -722,14 +722,15 @@ runinithook '40-started-hw-config' # unionfs/aufs modules visible by now if installed or directly compiled into # the kernel, try to use aufs for rw access if available union_type="" -if [ ${aufs} -eq 1 ] && \ - grep -q aufs /proc/filesystems || \ +if [ ${aufs} -eq 1 ] && grep -q aufs /proc/filesystems || \ { modprobe ${MODPRV} aufs 2>/dev/null && \ lsmod | grep -qe "^aufs" ; } ; then union_type="AUFS" -elif [ ${unionfs} -eq 1 ] && \ - grep -q aufs /proc/filesystems || \ +elif [ ${unionfs} -eq 1 ] && grep -q unionfs /proc/filesystems || \ { modprobe ${MODPRV} unionfs 2>/dev/null && \ lsmod | grep -qe "^unionfs" ; } ; then union_type="UnionFS" +elif [ -n "${fuse}" ] && grep -q fuse /proc/filesystems || \ + { modprobe ${MODPRV} fuse 2>/dev/null && \ + lsmod | grep -qe "^fuse" ; } ; then union_type="FuSE" elif [ ${aufs} -eq 0 -a ${unionfs} -eq 0 -a -z "${cowloop}" ] ; then error "$init_deselau" nonfatal unset aufs unionfs |