From: Harald Hoyer Date: Fri, 23 Apr 2021 09:11:27 +0000 (+0200) Subject: fix(multipath): stop multipath before udev db cleanup X-Git-Tag: 054~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c244c7ca3555b526883dc20104c469b39085cbe;p=thirdparty%2Fdracut.git 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 --- diff --git a/modules.d/90multipath/multipathd.service b/modules.d/90multipath/multipathd.service index 646c7c147..b544de210 100644 --- a/modules.d/90multipath/multipathd.service +++ b/modules.d/90multipath/multipathd.service @@ -4,8 +4,10 @@ Before=iscsi.service iscsid.service lvm2-activation-early.service Wants=systemd-udev-trigger.service systemd-udev-settle.service local-fs-pre.target After=systemd-udev-trigger.service systemd-udev-settle.service Before=local-fs-pre.target +Before=initrd-cleanup.service DefaultDependencies=no Conflicts=shutdown.target +Conflicts=initrd-cleanup.service ConditionKernelCommandLine=!nompath ConditionKernelCommandLine=!rd.multipath=0 ConditionKernelCommandLine=!rd_NO_MULTIPATH