commit:     0d15898f58cc254d79777c791d4798a9b2542cf2
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue Nov 14 19:17:01 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 19:20:49 2017 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=0d15898f

adjust mtab and localmount dependencies

localmount had mtab in its "use" dependencies; however, it makes more
sense to add "before localmount" to the mtab service and remove
"use mtab" from the localmount service.

 init.d/localmount.in | 2 +-
 init.d/mtab.in       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/init.d/localmount.in b/init.d/localmount.in
index 6785a0be..31684191 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -14,7 +14,7 @@ description="Mounts disks and swap according to /etc/fstab."
 depend()
 {
        need fsck
-       use lvm modules mtab root
+       use lvm modules root
        after clock lvm modules root
        keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver
 }

diff --git a/init.d/mtab.in b/init.d/mtab.in
index 80ef275c..9e0c1a6e 100644
--- a/init.d/mtab.in
+++ b/init.d/mtab.in
@@ -14,6 +14,7 @@ description="Update /etc/mtab to match what the kernel knows 
about"
 depend()
 {
        after clock
+       before localmount
        need root
        keyword -prefix -systemd-nspawn
 }

Reply via email to