Possibility to disable (not start) zfs at bootup.
[zfs.git] / etc / init.d / zfs.lsb.in
index 3d04206..0d0ffb4 100644 (file)
@@ -36,6 +36,11 @@ ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
 [ -x "$ZPOOL" ] || exit 1
 [ -x "$ZFS" ] || exit 2
 
+if [ -z "$init" ]; then
+    # Not interactive
+    grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3
+fi
+
 start()
 {
        [ -f "$LOCKFILE" ] && return 3