aboutsummaryrefslogtreecommitdiffstats
path: root/etc/init.d/zfs.gentoo.in
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2013-12-09 20:22:13 -0500
committerBrian Behlendorf <[email protected]>2014-03-04 11:54:44 -0800
commitb42b812efbbe5f9c9a8a2f2cb787e95aa09e158d (patch)
tree3ea7d6e2239a33f31798752e2dfc59a64ce51bea /etc/init.d/zfs.gentoo.in
parent36f92e93e5dcd88efd74522ac0efd237168c1dfd (diff)
Inform OpenRC that ZFS uses mtab
p_l in #zfsonlinux reported that he had issues mounting filesystems that were resolved by adding rc_need="mtab" to /etc/init.d/zfs. Closer inspection revealed that we do have a race, but it is not clear how this race caused mounting to fail. What is clear is that this race should be fixed, so lets add the proper `use mtab` line to handle it. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2148
Diffstat (limited to 'etc/init.d/zfs.gentoo.in')
-rw-r--r--etc/init.d/zfs.gentoo.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/init.d/zfs.gentoo.in b/etc/init.d/zfs.gentoo.in
index 01a7731f7..07fce01ba 100644
--- a/etc/init.d/zfs.gentoo.in
+++ b/etc/init.d/zfs.gentoo.in
@@ -20,6 +20,7 @@ depend()
# bootmisc will log to /var which may be a different zfs than root.
before bootmisc logger
+ use mtab
keyword -lxc -openvz -prefix -vserver
}