Skip to content

Commit

Permalink
Inform OpenRC that ZFS uses mtab
Browse files Browse the repository at this point in the history
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 openzfs#2148
  • Loading branch information
ryao authored and behlendorf committed Mar 4, 2014
1 parent 36f92e9 commit b42b812
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/init.d/zfs.gentoo.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b42b812

Please sign in to comment.