Skip to content

Commit

Permalink
40ignition-ostree: put growpart stamp file in /run
Browse files Browse the repository at this point in the history
This stamp file was used to make sure coreos-growpart only ran on the
first boot when it ran in the real root. Nowadays, it runs in the
initramfs as part of `ignition-complete.target` before we even run
`ostree-prepare-root` (which meant we were actually creating the stamp
file in the initrd filesystem).

Having a stamp file is useful though for writing tests. So let's
repurpose the idea and put it in `/run` instead.
  • Loading branch information
jlebon committed Aug 11, 2020
1 parent c4153b3 commit 57c17e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ case "${TYPE}" in
ext4) resize2fs "${src}" ;;
esac

touch /var/lib/coreos-growpart.stamp
# this is useful for tests
touch /run/coreos-growpart.stamp

0 comments on commit 57c17e4

Please sign in to comment.