summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-04-14 19:38:40 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-04-14 20:34:17 +0200
commit416b070c9234d47c19d09a318643081b0761e02a (patch)
tree3ad45ebd7cb618c4c129f82af23b9fca3d19fca3 /sys-fs/lvm2
parentsys-fs/lvm2: change "need lvmetad lvmlockd" to "use lvmetad lvmlockd" (diff)
downloadgentoo-416b070c9234d47c19d09a318643081b0761e02a.tar.gz
gentoo-416b070c9234d47c19d09a318643081b0761e02a.tar.bz2
gentoo-416b070c9234d47c19d09a318643081b0761e02a.zip
sys-fs/lvm2: runscript: save complete USE
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'sys-fs/lvm2')
-rw-r--r--sys-fs/lvm2/files/lvm.rc-2.02.18710
1 files 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 6b4e3df715fe..daafffd5b28b 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() {