prepare-root: Refactor composefs config handling
authorColin Walters <walters@verbum.org>
Thu, 13 Jul 2023 20:37:41 +0000 (16:37 -0400)
committerColin Walters <walters@verbum.org>
Fri, 14 Jul 2023 18:37:03 +0000 (14:37 -0400)
commitd4ca834b0904166fb7691ddbb1e1e2ea8f76c55f
tree43cc01c453b3babea8233db93310e4b4552300ef
parent18d6f5979331e8f890bf4b12473384b63754c450
prepare-root: Refactor composefs config handling

- Convert the current enum into a struct, using `OtTristate` and
  two member variables (expected signature and digest)
- Factor out a helper function to parse this config
- Clean up the logging by consistently using `composefs:` as a prefix
- Add more assertions to more strictly verify our runtime state
  since this is security relevant
src/switchroot/ostree-prepare-root.c