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 <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2148
This commit is contained in:
Richard Yao 2013-12-09 20:22:13 -05:00 committed by Brian Behlendorf
parent 36f92e93e5
commit b42b812efb

View File

@ -20,6 +20,7 @@ depend()
# bootmisc will log to /var which may be a different zfs than root. # bootmisc will log to /var which may be a different zfs than root.
before bootmisc logger before bootmisc logger
use mtab
keyword -lxc -openvz -prefix -vserver keyword -lxc -openvz -prefix -vserver
} }