main: Unconditionally set up mount namespace
authorColin Walters <walters@verbum.org>
Sat, 9 Jan 2021 20:42:43 +0000 (20:42 +0000)
committerColin Walters <walters@verbum.org>
Sun, 10 Jan 2021 13:40:52 +0000 (13:40 +0000)
commit10556a95b4820d713ca440015be9cb2aca6711e2
tree81933a03f78ae55e01539a9fd6d52dbe396b3759
parentfd9d422c51ce1b761f216f08a9da3776996bc7c7
main: Unconditionally set up mount namespace

I was being very conservative initially here, but I think it's
really safe to just unconditionally set up the mount namespace.

This avoids having to check twice for a read-only `/sysroot`
(once in the binary and once in the library).
src/ostree/ot-main.c