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 9238cdf
Showing 1 changed file with 6 additions and 0 deletions.
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 9238cdf

Please sign in to comment.