prepare-root: Unify root.transient with composefs
authorColin Walters <walters@verbum.org>
Mon, 12 Feb 2024 22:24:10 +0000 (17:24 -0500)
committerColin Walters <walters@verbum.org>
Mon, 12 Feb 2024 22:42:07 +0000 (17:42 -0500)
commitf89af07fcb57ae05f99a7f2323af8e5a40cecb60
tree163e140cb2ea0a7b70d7e3bd345a05e9cf7cf0a5
parentb92937866311037dd63757b9c723155c1f5e5e68
prepare-root: Unify root.transient with composefs

First, I was totally wrong and composefs handles being passed
an upperdir itself, we don't need to stack overlayfs.

Next, there's really no reason to support `root.transient`
*without* a backing composefs.  The legacy ostree bind mount
and readonly `/usr` is just that - legacy.

Finally, we actually *must* do this to enable both composefs
and transient root, because the prepare-root flow assumes
that it just needs to `MS_MOVE` a *single* mount for the root,
not a stack.
src/switchroot/ostree-prepare-root.c