commit:     416b070c9234d47c19d09a318643081b0761e02a
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 14 17:38:40 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Apr 14 18:34:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=416b070c

sys-fs/lvm2: runscript: save complete USE

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 sys-fs/lvm2/files/lvm.rc-2.02.187 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.187 
b/sys-fs/lvm2/files/lvm.rc-2.02.187
index 6b4e3df715f..daafffd5b28 100644
--- a/sys-fs/lvm2/files/lvm.rc-2.02.187
+++ b/sys-fs/lvm2/files/lvm.rc-2.02.187
@@ -108,10 +108,16 @@ start() {
 }
 
 start_post() {
-       # Save if we needed lvmetad
+       local _use=
        if _use_lvmetad ; then
-               service_set_value use lvmetad
+               _use="${_use} lvmetad"
+       fi
+
+       if _use_lvmlockd ; then
+               _use="${_use} lvmlockd"
        fi
+
+       service_set_value use "${_use}"
 }
 
 stop() {

Reply via email to