lvm2: fix lvm2-monitor.service startup failed
PATCH 1/1 lvm2: fix lvm2-monitor.service startup failed
From: Changqing Li <[email protected]>
Issue:
vm2-monitor.service: Failed to create lvm2-monitor.service/start:
Unit lvm2-lvmetad.socket not found
lvmetad have been removed by upstream, but this part is missed, backport fix from upstream
Signed-off-by Changqing Li <[email protected]>
--- ...toring-service-shouldn-t-refer-to-lvmetad.patch | 31 ++++++++++++++++++++++ meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb | 4 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/lvm2/lvm2/0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch
meta-oe/recipes-support/lvm2/lvm2/0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch new file +31 -0
@@ -0,0 +1,31 @@ +From b922f4a4e7e1c6c64a235bae4c575540bc4a12df Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Thu, 21 Feb 2019 14:00:34 +0800 +Subject: [PATCH] lvm2-monitoring service shouldn't refer to lvmetad + +Upstream-Status: Backport [https://sourceware.org/git/?p=lvm2.git; +a=commit;h=df2fa88e631b13f0f2cfff4aeab80f12bd93ab72] + +Signed-off-by: Changqing Li <[email protected]> +--- + scripts/lvm2_monitoring_systemd_red_hat.service.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in +index 2b87479..3282a95 100644 +--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in ++++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in +@@ -1,8 +1,8 @@ + [Unit] + Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling + Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8) +-Requires=dm-event.socket lvm2-lvmetad.socket +-After=dm-event.socket dm-event.service lvm2-lvmetad.socket lvm2-activation.service lvm2-lvmetad.service tmp.mount ++Requires=dm-event.socket ++After=dm-event.socket dm-event.service lvm2-activation.service tmp.mount + Before=local-fs-pre.target + DefaultDependencies=no + Conflicts=shutdown.target +-- +2.7.4 +
meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb +3 -1
@@ -2,7 +2,9 @@ require lvm2.inc SRCREV = "913c28917e62577a2ef67152b2e5159237503dda" -SRC_URI += "file://0001-explicitly-do-not-install-libdm.patch" +SRC_URI += "file://0001-explicitly-do-not-install-libdm.patch \ + file://0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch \ + " DEPENDS += "autoconf-archive-native"
Signature · 1 line
2.7.4