aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2/lvm2.inc
diff options
context:
space:
mode:
authorZhixiong Chi <zhixiong.chi@windriver.com>2015-07-21 11:13:55 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-07-30 21:03:27 +0200
commitf110de50801c14483c05ebb594491d3361c0d337 (patch)
tree4b290475212fa91554b605959fe59f5d012bc8a6 /meta-oe/recipes-support/lvm2/lvm2.inc
parentcfe72b6070fab0b57603eb26193caa58c6d9a206 (diff)
downloadmeta-openembedded-contrib-f110de50801c14483c05ebb594491d3361c0d337.tar.gz
lvm2: fix shared object file dlopen failed
Add the variable snapshot_library into config file(lvm.conf), so it can link the correct shared object files with correct path. Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2.inc')
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index f518884e79..099164c2df 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -37,6 +37,7 @@ inherit autotools pkgconfig systemd
do_install_append() {
# Install machine specific configuration file
install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
+ sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${B}/scripts/lvm2_monitoring_systemd_red_hat.service ${D}${systemd_unitdir}/system/lvm2-monitor.service
install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.socket ${D}${systemd_unitdir}/system/dm-event.socket