git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Possibility to disable (not start) zfs at bootup.
[zfs.git]
/
etc
/
init.d
/
zfs.lsb.in
diff --git
a/etc/init.d/zfs.lsb.in
b/etc/init.d/zfs.lsb.in
index
3d04206
..
0d0ffb4
100644
(file)
--- a/
etc/init.d/zfs.lsb.in
+++ b/
etc/init.d/zfs.lsb.in
@@
-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