aboutsummaryrefslogtreecommitdiffstats
path: root/etc/init.d/zfs-mount.in
diff options
context:
space:
mode:
Diffstat (limited to 'etc/init.d/zfs-mount.in')
-rwxr-xr-xetc/init.d/zfs-mount.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/init.d/zfs-mount.in b/etc/init.d/zfs-mount.in
index 3be3d7b13..cf79b852b 100755
--- a/etc/init.d/zfs-mount.in
+++ b/etc/init.d/zfs-mount.in
@@ -46,6 +46,17 @@ chkroot() {
do_depend()
{
+ # Try to allow people to mix and match fstab with ZFS in a way that makes sense.
+ if [ "$(mountinfo -s /)" = 'zfs' ]
+ then
+ before localmount
+ else
+ after localmount
+ fi
+
+ # bootmisc will log to /var which may be a different zfs than root.
+ before bootmisc logger
+
after procfs zfs-import sysfs procps
use mtab
keyword -lxc -openvz -prefix -vserver