summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2/lvm2.inc
diff options
context:
space:
mode:
authorLi xin <lixin.fnst@cn.fujitsu.com>2015-06-09 09:12:00 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-06-23 12:43:12 +0200
commit34dcefb1bfbbac33a771b4b68748e0d9d877365e (patch)
tree60b2a0aa094f89b4df53c89dabab2f29779c0725 /meta-oe/recipes-support/lvm2/lvm2.inc
parentb11f35a94cdf100ef0b056449345a0ca094aeea6 (diff)
downloadmeta-openembedded-34dcefb1bfbbac33a771b4b68748e0d9d877365e.tar.gz
lvm2: add systemd support
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.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.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index e116629f8..34fec99a6 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -36,13 +36,21 @@ PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '',
36 36
37PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," 37PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
38 38
39inherit autotools pkgconfig 39inherit autotools pkgconfig systemd
40 40
41do_install_append() { 41do_install_append() {
42 # Install machine specific configuration file 42 # Install machine specific configuration file
43 install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf 43 install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
44 install -d ${D}${systemd_unitdir}/system
45 install -m 0644 ${B}/scripts/lvm2_monitoring_systemd_red_hat.service ${D}${systemd_unitdir}/system/lvm2-monitor.service
46 install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.socket ${D}${systemd_unitdir}/system/dm-event.socket
47 install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.service ${D}${systemd_unitdir}/system/dm-event.service
44} 48}
45 49
50SYSTEMD_PACKAGES = "${PN}"
51SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service"
52SYSTEMD_AUTO_ENABLE = "disable"
53
46TARGET_CC_ARCH += "${LDFLAGS}" 54TARGET_CC_ARCH += "${LDFLAGS}"
47 55
48FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev" 56FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"