Possibility to disable (not start) zfs at bootup.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1402
This commit is contained in:
parent
c4933aade7
commit
382c4e5184
|
@ -25,6 +25,11 @@
|
||||||
|
|
||||||
export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
||||||
|
|
||||||
|
if [ -z "$init" ]; then
|
||||||
|
# Not interactive
|
||||||
|
grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
# Source function library & LSB routines
|
# Source function library & LSB routines
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
# Released under the 2-clause BSD license.
|
# Released under the 2-clause BSD license.
|
||||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/files/zfs,v 0.9 2011/04/30 10:13:43 devsk Exp $
|
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/files/zfs,v 0.9 2011/04/30 10:13:43 devsk Exp $
|
||||||
|
|
||||||
|
if [ -z "$init" ]; then
|
||||||
|
# Not interactive
|
||||||
|
grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
# bootmisc will log to /var which may be a different zfs than root.
|
# bootmisc will log to /var which may be a different zfs than root.
|
||||||
|
|
|
@ -36,6 +36,11 @@ ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
[ -x "$ZPOOL" ] || exit 1
|
[ -x "$ZPOOL" ] || exit 1
|
||||||
[ -x "$ZFS" ] || exit 2
|
[ -x "$ZFS" ] || exit 2
|
||||||
|
|
||||||
|
if [ -z "$init" ]; then
|
||||||
|
# Not interactive
|
||||||
|
grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
[ -f "$LOCKFILE" ] && return 3
|
[ -f "$LOCKFILE" ] && return 3
|
||||||
|
|
|
@ -14,6 +14,11 @@ ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
|
|
||||||
|
if [ -z "$init" ]; then
|
||||||
|
# Not interactive
|
||||||
|
grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start) echo "$1ing ZFS filesystems"
|
start) echo "$1ing ZFS filesystems"
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
|
|
||||||
export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
||||||
|
|
||||||
|
if [ -z "$init" ]; then
|
||||||
|
# Not interactive
|
||||||
|
grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
# Source function library & LSB routines
|
# Source function library & LSB routines
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue