summaryrefslogtreecommitdiffstats
path: root/sys-fs/lvm2/lvm2-2.02.110-r99.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/lvm2/lvm2-2.02.110-r99.ebuild')
-rw-r--r--sys-fs/lvm2/lvm2-2.02.110-r99.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-fs/lvm2/lvm2-2.02.110-r99.ebuild b/sys-fs/lvm2/lvm2-2.02.110-r99.ebuild
index 4cffcec..8a73dfb 100644
--- a/sys-fs/lvm2/lvm2-2.02.110-r99.ebuild
+++ b/sys-fs/lvm2/lvm2-2.02.110-r99.ebuild
@@ -87,6 +87,12 @@ src_prepare() {
elog "if it was previously disabled."
fi
+ if use elibc_musl; then
+ einfo "Notice that \"use_mlockall\" setting is enabled on musl systems in"
+ einfo "/etc/lvm/lvm.conf to avoid \"mlock failed: Out of memory\" messages"
+ sed -i -e '/use_mlockall =/s:0:1:' conf/example.conf.in
+ fi
+
sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514
# For upstream -- review and forward: