mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-08 16:00:32 +00:00
lvm2: enable lvmetad
the systemd unit file of lvm2-monitor requires lvm2-lvmetad.socket which asks to enable lvmetad, lvmetad is a metadata caching daemon for LVM. so this fixed the below error: # systemctl start lvm2-monitor Failed to start lvm2-monitor.service: Unit lvm2-lvmetad.socket failed to load: No such file or directory. # replace the installation of system unit file by make install_systemd_units Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@ EXTRA_OECONF = "--with-user= \
|
|||||||
--enable-udev_rules \
|
--enable-udev_rules \
|
||||||
--enable-pkgconfig \
|
--enable-pkgconfig \
|
||||||
--enable-dmeventd \
|
--enable-dmeventd \
|
||||||
|
--enable-lvmetad \
|
||||||
--with-udev-prefix= \
|
--with-udev-prefix= \
|
||||||
--with-usrlibdir=${libdir} \
|
--with-usrlibdir=${libdir} \
|
||||||
"
|
"
|
||||||
@@ -38,14 +39,13 @@ do_install_append() {
|
|||||||
# Install machine specific configuration file
|
# Install machine specific configuration file
|
||||||
install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
|
install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
|
||||||
sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
|
sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
|
||||||
install -d ${D}${systemd_unitdir}/system
|
oe_runmake 'DESTDIR=${D}' install install_systemd_units
|
||||||
install -m 0644 ${B}/scripts/lvm2_monitoring_systemd_red_hat.service ${D}${systemd_unitdir}/system/lvm2-monitor.service
|
sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_unitdir}/system/blk-availability.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_PACKAGES = "${PN}"
|
||||||
SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service"
|
SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service lvm2-lvmetad.socket \
|
||||||
|
lvm2-pvscan@.service blk-availability.service"
|
||||||
SYSTEMD_AUTO_ENABLE = "disable"
|
SYSTEMD_AUTO_ENABLE = "disable"
|
||||||
|
|
||||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||||
|
|||||||
Reference in New Issue
Block a user