From: Richard Yao Date: Tue, 10 Dec 2013 01:22:13 +0000 (-0500) Subject: Inform OpenRC that ZFS uses mtab X-Git-Tag: zfs-0.6.3~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b42b812efbbe5f9c9a8a2f2cb787e95aa09e158d;p=zfs 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 Signed-off-by: Brian Behlendorf Closes #2148 --- 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 }