Skip to content

Commit

Permalink
dracut: add dependency network to ignition-mount.service
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Dusty Mabe <[email protected]>
  • Loading branch information
tormath1 and dustymabe committed Sep 13, 2024
1 parent 49f4cf2 commit 6eb35ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions dracut/30ignition/ignition-mount.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6eb35ed

Please sign in to comment.