summaryrefslogtreecommitdiffstats
path: root/sys-fs/lvm2/lvm2-2.02.110-r99.ebuild
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2015-05-23 13:56:47 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2015-05-23 13:56:47 +0200
commit8d2dc2c7f3d1e2624ea6077f3b3b7d035cdc910d (patch)
treebc5dd0a38d0e68a53fab7e086749181defafa900 /sys-fs/lvm2/lvm2-2.02.110-r99.ebuild
parent78e512adce9601c0131e57a27d98049e5e3d0dce (diff)
downloadhardened-dev-8d2dc2c7f3d1e2624ea6077f3b3b7d035cdc910d.tar.gz
hardened-dev-8d2dc2c7f3d1e2624ea6077f3b3b7d035cdc910d.tar.bz2
hardened-dev-8d2dc2c7f3d1e2624ea6077f3b3b7d035cdc910d.tar.xz
hardened-dev-8d2dc2c7f3d1e2624ea6077f3b3b7d035cdc910d.zip
Change the default setting of use_mlockall on muslmusl
Helps avoid "mlock failed: Out of memory" messages.
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: