From 1c0ca68427db763d3f6bff78f43c64c8b9a6bca1 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 28 Jun 2021 12:06:46 -0400 Subject: [PATCH] coreos-propagate-multipath-conf: run After=initrd-root-fs.target We should only copy to the sysroot's `/etc` after we're sure it's all set up. This is marked by `initrd-root-fs.target`. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1974411 --- .../coreos-propagate-multipath-conf.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-propagate-multipath-conf.service b/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-propagate-multipath-conf.service index 978fc56c4e..c475eaa6c5 100644 --- a/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-propagate-multipath-conf.service +++ b/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-propagate-multipath-conf.service @@ -1,8 +1,10 @@ [Unit] Description=CoreOS Propagate Multipath Configuration -After=ostree-prepare-root.service Before=initrd.target +# we write to the rootfs, so run after it's ready +After=initrd-root-fs.target + ConditionKernelCommandLine=rd.multipath=default OnFailure=emergency.target