From 6eb35ed45d81412df305ce1045569c30ad742cfd Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Thu, 12 Sep 2024 15:40:01 +0200 Subject: [PATCH] dracut: add dependency network to ignition-mount.service On some providers (like Equinix Metal), there is a network dependency for the umount stage, network must be still around when ExecStop is executed. Signed-off-by: Mathieu Tortuyaux Co-authored-by: Dusty Mabe --- docs/release-notes.md | 1 + dracut/30ignition/ignition-mount.service | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index c734609fe..87fa93f85 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -19,6 +19,7 @@ nav_order: 9 ### Bug fixes +- Fix network race when phoning home on Equinix Metal - Fix Akamai Ignition base64 decoding on padded payloads ## Ignition 2.19.0 (2024-06-05) diff --git a/dracut/30ignition/ignition-mount.service b/dracut/30ignition/ignition-mount.service index 2800345fd..1baf367a8 100644 --- a/dracut/30ignition/ignition-mount.service +++ b/dracut/30ignition/ignition-mount.service @@ -13,7 +13,13 @@ After=ignition-disks.service Before=ignition-files.service # Make sure ExecStop= runs before we switch root +# and that we order ourselves after network such that +# if networking is brought up it will still be available +# for our ExecStop= command. On some providers like Equinix +# Metal (Packet) there is a network callback sent out +# for each Ignition stage (including umount). Before=initrd-switch-root.target +After=network.target OnFailure=emergency.target OnFailureJobMode=isolate