prepare-root: Switch to a tmpfs for transient root
authorColin Walters <walters@verbum.org>
Tue, 13 Feb 2024 20:41:35 +0000 (15:41 -0500)
committerColin Walters <walters@verbum.org>
Tue, 13 Feb 2024 20:56:05 +0000 (15:56 -0500)
commit0cff65d61a73d85b12e05d97f6c03eec20c7ae4b
tree3fabd1ecce85c5a7a3355be90f604ccc2fd5b9ee
parenteeccac7fc9fc58433d170da1cc33a3b209bd46e5
prepare-root: Switch to a tmpfs for transient root

We're debating this over in https://github.com/CentOS/centos-bootc-dev/pull/27
and I have come to the conclusion that having changes to `/`
persist across reboot by default was a bad idea.

- It conflicts with any kind of secure boot scenario
- Having things only go away on upgrades is in some ways even *more* surprising
- The term `transient` implies this

There may be a use case in the future for having something like `root.transient = persistent`,
but this is just a better default.

Signed-off-by: Colin Walters <walters@verbum.org>
src/switchroot/ostree-prepare-root.c