Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #116 from laenion/master
Browse files Browse the repository at this point in the history
Run ignition-disks earlier to avoid race condition
  • Loading branch information
Andrew Jeddeloh authored Oct 1, 2019
2 parents 07cb575 + 4cdd024 commit cefb71c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dracut/30ignition/ignition-disks.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ DefaultDependencies=false
Before=ignition-complete.target
After=ignition-fetch.service

# This stage runs between `basic.target` and `initrd-root-fs.target`,
# This stage runs between `basic.target` and `initrd-root-device.target`,
# see https://www.freedesktop.org/software/systemd/man/bootup.html
# Make sure to run before the file system checks, as sgdisk will trigger
# udev events, potentially resulting in race conditions due to disappearing
# devices.

# Note that CL runs this before `local-fs-pre.target` to allow for configs that
# completely wipe the rootfs. Though we're not there yet. But we still run
# before `sysroot.mount` on principle.
Before=initrd-root-fs.target
Before=initrd-root-device.target
Before=sysroot.mount

# This stage requires udevd to detect disk partitioning changes.
Expand Down

0 comments on commit cefb71c

Please sign in to comment.