]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(multipath): stop multipath before udev db cleanup
authorHarald Hoyer <harald@redhat.com>
Fri, 23 Apr 2021 09:11:27 +0000 (11:11 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 28 Apr 2021 11:19:33 +0000 (13:19 +0200)
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

modules.d/90multipath/multipathd.service

index 646c7c1476888882529c01a3c8b19b20e5f261a8..b544de210546232d3837d6b916dad60ff63066f2 100644 (file)
@@ -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