summaryrefslogtreecommitdiffstats
path: root/etc/init.d
diff options
context:
space:
mode:
authorTurbo Fredriksson <[email protected]>2014-02-03 21:52:50 +0000
committerBrian Behlendorf <[email protected]>2014-04-04 09:48:25 -0700
commite37212f9a28e2b74f9d7ba6c0845a309ed49366a (patch)
tree70c167a888d851143d38d3ecb47295b972de895f /etc/init.d
parentcbca6076b33e3d1af330e0e1f00cbf1baaf26d82 (diff)
Support using overlay mounts in defaults/init script.
Signed-off-by: Turbo Fredriksson <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #2103
Diffstat (limited to 'etc/init.d')
-rw-r--r--etc/init.d/zfs.lsb.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/init.d/zfs.lsb.in b/etc/init.d/zfs.lsb.in
index f400fca32..a0f3a647d 100644
--- a/etc/init.d/zfs.lsb.in
+++ b/etc/init.d/zfs.lsb.in
@@ -31,6 +31,7 @@ ZPOOL="@sbindir@/zpool"
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
USE_DISK_BY_ID=0
VERBOSE_MOUNT=0
+DO_OVERLAY_MOUNTS=0
# Source zfs configuration.
[ -r '/etc/default/zfs' ] && . /etc/default/zfs
@@ -90,8 +91,12 @@ start()
verbose=v
fi
+ if [ "$DO_OVERLAY_MOUNTS" -eq 1 ]; then
+ overlay=O
+ fi
+
log_begin_msg "Mounting ZFS filesystems"
- "$ZFS" mount -a$verbose
+ "$ZFS" mount -a$verbose$overlay
log_end_msg $?
log_begin_msg "Exporting ZFS filesystems"