ostree/src
Colin Walters f2773c1b55 Add "transient" unlock
I was thinking a bit more recently about the "live" changes
stuff https://github.com/coreos/rpm-ostree/issues/639
(particularly since https://github.com/coreos/rpm-ostree/pull/2060 )
and I realized reading the last debates in that issue that
there's really a much simpler solution; do exactly the same
thing we do for `ostree admin unlock`, except mount it read-only
by default.

Then, anything that wants to modify it does the same thing
libostree does for `/sysroot` and `/boot` as of recently; create
a new mount namespace and do the modifications there.

The advantages of this are numerous.  First, we already have
all of the code, it's basically just plumbing through a new
entry in the state enumeration and passing `MS_RDONLY` into
the `mount()` system call.

"live" changes here also naturally don't persist, unlike what
we are currently doing in rpm-ostree.
2020-08-07 18:57:56 +00:00
..
boot finalize: Add RequiresMountsFor=/boot too 2020-05-13 18:52:45 +00:00
libostree Add "transient" unlock 2020-08-07 18:57:56 +00:00
libotutil lib/keyfile: Treat "group not found" the same as "key not found" 2019-11-07 21:15:41 +00:00
ostree Add "transient" unlock 2020-08-07 18:57:56 +00:00
rofiles-fuse rofiles-fuse: Improve error message for failure to open root 2018-10-12 14:11:10 +00:00
switchroot remount: Still remount /sysroot writable if not configured ro 2020-08-01 17:27:18 +00:00