summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2/lvm2.inc
diff options
context:
space:
mode:
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"