Skip to content

Commit

Permalink
Support using overlay mounts in defaults/init script.
Browse files Browse the repository at this point in the history
Signed-off-by: Turbo Fredriksson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #2103
  • Loading branch information
FransUrbo authored and behlendorf committed Apr 4, 2014
1 parent cbca607 commit e37212f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion etc/init.d/zfs.lsb.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit e37212f

Please sign in to comment.