git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve OpenRC init script
[zfs.git]
/
etc
/
init.d
/
zfs.gentoo.in
diff --git
a/etc/init.d/zfs.gentoo.in
b/etc/init.d/zfs.gentoo.in
index
5b8671e
..
0034e02
100644
(file)
--- a/
etc/init.d/zfs.gentoo.in
+++ b/
etc/init.d/zfs.gentoo.in
@@
-10,9
+10,16
@@
fi
depend()
{
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.
# bootmisc will log to /var which may be a different zfs than root.
- before net bootmisc
- after udev localmount
+ before bootmisc logger
keyword -lxc -openvz -prefix -vserver
}
keyword -lxc -openvz -prefix -vserver
}