Support using overlay mounts in defaults/init script.
Signed-off-by: Turbo Fredriksson <turbo@bayour.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #2103
This commit is contained in:
parent
cbca6076b3
commit
e37212f9a2
|
@ -31,6 +31,7 @@ ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
USE_DISK_BY_ID=0
|
USE_DISK_BY_ID=0
|
||||||
VERBOSE_MOUNT=0
|
VERBOSE_MOUNT=0
|
||||||
|
DO_OVERLAY_MOUNTS=0
|
||||||
|
|
||||||
# Source zfs configuration.
|
# Source zfs configuration.
|
||||||
[ -r '/etc/default/zfs' ] && . /etc/default/zfs
|
[ -r '/etc/default/zfs' ] && . /etc/default/zfs
|
||||||
|
@ -90,8 +91,12 @@ start()
|
||||||
verbose=v
|
verbose=v
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$DO_OVERLAY_MOUNTS" -eq 1 ]; then
|
||||||
|
overlay=O
|
||||||
|
fi
|
||||||
|
|
||||||
log_begin_msg "Mounting ZFS filesystems"
|
log_begin_msg "Mounting ZFS filesystems"
|
||||||
"$ZFS" mount -a$verbose
|
"$ZFS" mount -a$verbose$overlay
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
|
|
||||||
log_begin_msg "Exporting ZFS filesystems"
|
log_begin_msg "Exporting ZFS filesystems"
|
||||||
|
|
Loading…
Reference in New Issue