|
|
28ab1c |
From 3789ef258ecced4b91139b10e71dc787e48519e7 Mon Sep 17 00:00:00 2001
|
|
|
28ab1c |
From: Harald Hoyer <harald@redhat.com>
|
|
|
28ab1c |
Date: Fri, 23 Apr 2021 11:11:27 +0200
|
|
|
28ab1c |
Subject: [PATCH] fix(multipath): stop multipath before udev db cleanup
|
|
|
28ab1c |
|
|
|
28ab1c |
All device-mapper based devices, including device-mapper-multipath,
|
|
|
28ab1c |
do reuse the udev db from the initramfs after switching to the root fs.
|
|
|
28ab1c |
|
|
|
28ab1c |
Therefore device-mapper devices have to be correctly initialized before
|
|
|
28ab1c |
the udev daemon is stopped, to have the correct entries in the udev db.
|
|
|
28ab1c |
|
|
|
28ab1c |
See also https://bugzilla.redhat.com/show_bug.cgi?id=1949076
|
|
|
28ab1c |
|
|
|
28ab1c |
(cherry picked from commit 3c244c7ca3555b526883dc20104c469b39085cbe)
|
|
|
28ab1c |
|
|
|
28ab1c |
Resolves: #1949076
|
|
|
28ab1c |
---
|
|
|
28ab1c |
modules.d/90multipath/multipathd.service | 2 ++
|
|
|
28ab1c |
1 file changed, 2 insertions(+)
|
|
|
28ab1c |
|
|
|
28ab1c |
diff --git a/modules.d/90multipath/multipathd.service b/modules.d/90multipath/multipathd.service
|
|
|
28ab1c |
index 646c7c14..b544de21 100644
|
|
|
28ab1c |
--- a/modules.d/90multipath/multipathd.service
|
|
|
28ab1c |
+++ b/modules.d/90multipath/multipathd.service
|
|
|
28ab1c |
@@ -4,8 +4,10 @@ Before=iscsi.service iscsid.service lvm2-activation-early.service
|
|
|
28ab1c |
Wants=systemd-udev-trigger.service systemd-udev-settle.service local-fs-pre.target
|
|
|
28ab1c |
After=systemd-udev-trigger.service systemd-udev-settle.service
|
|
|
28ab1c |
Before=local-fs-pre.target
|
|
|
28ab1c |
+Before=initrd-cleanup.service
|
|
|
28ab1c |
DefaultDependencies=no
|
|
|
28ab1c |
Conflicts=shutdown.target
|
|
|
28ab1c |
+Conflicts=initrd-cleanup.service
|
|
|
28ab1c |
ConditionKernelCommandLine=!nompath
|
|
|
28ab1c |
ConditionKernelCommandLine=!rd.multipath=0
|
|
|
28ab1c |
ConditionKernelCommandLine=!rd_NO_MULTIPATH
|
|
|
28ab1c |
|