diff --git a/bug-1228854_lvm2-monitor-service-start-after-system-fully-booted.patch b/bug-1228854_lvm2-monitor-service-start-after-system-fully-booted.patch new file mode 100644 index 0000000..07a9b33 --- /dev/null +++ b/bug-1228854_lvm2-monitor-service-start-after-system-fully-booted.patch @@ -0,0 +1,36 @@ +From 3ef8ec8eb6a8ccde2ca4db53fcac224eedaf4a28 Mon Sep 17 00:00:00 2001 +From: Su Yue +Date: Tue, 13 Aug 2024 20:57:53 +0800 +Subject: [PATCH] lvm2-monitor.service: start after system fully booted + +This patch is for 'bsc#1228854 - lvm2-monitor.service fails to start'. +All verions with system.devices enabled should contain this patch. + +Signed-off-by: Su Yue +--- + scripts/lvm2_monitoring_systemd_red_hat.service.in | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in +index c0c96e316b67..b50007cd8bd2 100644 +--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in ++++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in +@@ -3,9 +3,6 @@ Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progres + Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8) + Requires=dm-event.socket + After=dm-event.socket dm-event.service +-Before=local-fs-pre.target shutdown.target +-DefaultDependencies=no +-Conflicts=shutdown.target + + [Service] + Type=oneshot +@@ -15,4 +12,4 @@ ExecStop=@SBINDIR@/lvm vgchange --monitor n + RemainAfterExit=yes + + [Install] +-WantedBy=sysinit.target ++WantedBy=multi-user.target +-- +2.45.2 + diff --git a/lvm2.changes b/lvm2.changes index 7973dcb..11d28df 100644 --- a/lvm2.changes +++ b/lvm2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 13 13:08:00 UTC 2024 - Glass Su + +- lvm2-monitor.service fails to start (boo#1228854) + + bug-1228854_lvm2-monitor-service-start-after-system-fully-booted.patch + ------------------------------------------------------------------- Tue Jul 22 01:44:00 UTC 2024 - Glass Su diff --git a/lvm2.spec b/lvm2.spec index 0a0ba4a..34f99ae 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -87,6 +87,7 @@ Patch1006: fate-31841-01_fsadm-add-support-to-resize-check-btrfs-filesystem Patch1007: fate-31841-02_man-add-support-for-btrfs.patch Patch1008: fate-31841-03_tests-new-test-suite-of-fsadm-for-btrfs.patch Patch1009: bug-1214071-blkdeactivate_calls_wrong_mountpoint.patch +Patch1010: bug-1228854_lvm2-monitor-service-start-after-system-fully-booted.patch # SUSE patches 2000+ for device mapper, udev rules Patch2001: bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-rules.patch # SUSE patches 3000+ for test code @@ -148,6 +149,7 @@ Volume Manager. %patch -P 1007 -p1 %patch -P 1008 -p1 %patch -P 1009 -p1 +%patch -P 1010 -p1 %patch -P 2001 -p1 %patch -P 3001 -p1