aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2
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
parentb11f35a94cdf100ef0b056449345a0ca094aeea6 (diff)
downloadmeta-openembedded-contrib-34dcefb1bfbbac33a771b4b68748e0d9d877365e.tar.gz
meta-openembedded-contrib-34dcefb1bfbbac33a771b4b68748e0d9d877365e.tar.bz2
meta-openembedded-contrib-34dcefb1bfbbac33a771b4b68748e0d9d877365e.zip
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')
-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 e116629f89..34fec99a68 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', '',
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
-inherit autotools pkgconfig
+inherit autotools pkgconfig systemd
do_install_append() {
# Install machine specific configuration file
install -m 0644 ${WORKDIR}/lvm.conf ${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
+ install -m 0644 ${B}/scripts/dm_event_systemd_red_hat.service ${D}${systemd_unitdir}/system/dm-event.service
}
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service"
+SYSTEMD_AUTO_ENABLE = "disable"
+
TARGET_CC_ARCH += "${LDFLAGS}"
FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"