diff options
author | Li xin <lixin.fnst@cn.fujitsu.com> | 2015-06-09 09:12:00 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-06-23 12:43:12 +0200 |
commit | 34dcefb1bfbbac33a771b4b68748e0d9d877365e (patch) | |
tree | 60b2a0aa094f89b4df53c89dabab2f29779c0725 /meta-oe/recipes-support/lvm2/lvm2.inc | |
parent | b11f35a94cdf100ef0b056449345a0ca094aeea6 (diff) | |
download | meta-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.inc | 10 |
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 | ||
37 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," | 37 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," |
38 | 38 | ||
39 | inherit autotools pkgconfig | 39 | inherit autotools pkgconfig systemd |
40 | 40 | ||
41 | do_install_append() { | 41 | do_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 | ||
50 | SYSTEMD_PACKAGES = "${PN}" | ||
51 | SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service" | ||
52 | SYSTEMD_AUTO_ENABLE = "disable" | ||
53 | |||
46 | TARGET_CC_ARCH += "${LDFLAGS}" | 54 | TARGET_CC_ARCH += "${LDFLAGS}" |
47 | 55 | ||
48 | FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev" | 56 | FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev" |