Skip to content

Commit

Permalink
40ignition-ostree/ignition-ostree-growfs.service: Wait for root devic…
Browse files Browse the repository at this point in the history
…e to be present

There seems to be a simple race condition. Ensure the rootfs disk is present
before running the service.

Fixes: openshift/os#1264

Signed-off-by: Jan Schintag <[email protected]>
  • Loading branch information
jschintag committed Apr 18, 2023
1 parent 5134c04 commit 0c62166
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description=Ignition OSTree: Grow Root Filesystem
DefaultDependencies=false
ConditionKernelCommandLine=ostree
ConditionPathExists=!/run/ostree-live
Require=/dev/disk/by-label/root
Before=initrd-root-fs.target
Before=sysroot.mount ignition-ostree-mount-firstboot-sysroot.service
After=ignition-ostree-uuid-root.service
Expand All @@ -12,4 +13,4 @@ Type=oneshot
ExecStart=/usr/sbin/ignition-ostree-growfs
RemainAfterExit=yes
# So we can transiently mount sysroot
MountFlags=slave
MountFlags=slave

0 comments on commit 0c62166

Please sign in to comment.