prepare-root: Add metadata for composefs to `/run/ostree-booted`
authorColin Walters <walters@verbum.org>
Wed, 12 Jul 2023 20:48:56 +0000 (16:48 -0400)
committerColin Walters <walters@verbum.org>
Thu, 13 Jul 2023 11:28:39 +0000 (07:28 -0400)
commit93699cc54611fef1214966cd8292f565f6b7b11e
tree60e504e6c4e1520a5cc30f98357b9b139512e5df
parentbafb551275b22fbd5c9f227e368b841bc91b3569
prepare-root: Add metadata for composefs to `/run/ostree-booted`

Particularly for the signature case, having this metadata
acts as a reliable "proof of execution" of the signature verification
code (as opposed to parsing a log file or so).

Besides that, this is also just a stronger check for "we're using
composefs" instead of checking for "overlayfs on /".
src/libotcore/otcore.h
src/switchroot/ostree-prepare-root.c
tests/inst/src/composefs.rs