Skip to content

Commit 3c244c7

Browse files
committed
fix(multipath): stop multipath before udev db cleanup
All device-mapper based devices, including device-mapper-multipath, do reuse the udev db from the initramfs after switching to the root fs. Therefore device-mapper devices have to be correctly initialized before the udev daemon is stopped, to have the correct entries in the udev db. See also https://bugzilla.redhat.com/show_bug.cgi?id=1949076
1 parent abfd547 commit 3c244c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules.d/90multipath/multipathd.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ Before=iscsi.service iscsid.service lvm2-activation-early.service
44
Wants=systemd-udev-trigger.service systemd-udev-settle.service local-fs-pre.target
55
After=systemd-udev-trigger.service systemd-udev-settle.service
66
Before=local-fs-pre.target
7+
Before=initrd-cleanup.service
78
DefaultDependencies=no
89
Conflicts=shutdown.target
10+
Conflicts=initrd-cleanup.service
911
ConditionKernelCommandLine=!nompath
1012
ConditionKernelCommandLine=!rd.multipath=0
1113
ConditionKernelCommandLine=!rd_NO_MULTIPATH

0 commit comments

Comments
 (0)