os-init: Create a mount namespace
authorColin Walters <walters@verbum.org>
Tue, 1 Aug 2023 12:58:27 +0000 (08:58 -0400)
committerColin Walters <walters@verbum.org>
Wed, 2 Aug 2023 18:32:22 +0000 (14:32 -0400)
commitac42e29d667d88858f44f2260b1153873e9261be
treef3bec31a38588e5131007c78088b14101ec190e6
parent113e575e8ed189d3fd5bfa793026f61992294343
os-init: Create a mount namespace

Today on anything using readonly sysroot `os-init` fails, because
we don't create a mount namespace if the `UNLOCKED` flag is specified
because we assume it's a readonly operation.

Since technically this is a mutation, let's just lock the sysroot
and use the tested path.
src/ostree/ot-admin-builtin-os-init.c
tests/inst/src/insttestmain.rs
tests/inst/src/sysroot.rs