ostree/src/libotutil
Colin Walters 9a526bbaa5 sysroot: Handle ro /boot but rw /sysroot
The recent change in https://github.com/coreos/fedora-coreos-config/pull/659
broke some of our tests that do `mount -o remount,rw /sysroot` but
leave `/boot` read-only.

We had code for having `/boot` read-only before `/sysroot` but
in practice we had a file descriptor for `/sysroot` that we opened
before the remount that would happen later on.

Clean things up here so that in the library, we also remount
`/boot` at the same time we remount `/sysroot` if either are readonly.

Delete the legacy code for remounting `/boot` rw if we're not in
a mount namespace.  I am fairly confident most users are either
using the `ostree` CLI, or they're using the mount namespace.
2021-01-10 13:49:44 +00:00
..
ot-checksum-instream.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-checksum-instream.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-checksum-utils.c Add and use ot_checksum_bytes helper 2020-09-11 12:00:05 +02:00
ot-checksum-utils.h Add and use ot_checksum_bytes helper 2020-09-11 12:00:05 +02:00
ot-fs-utils.c libotutil: factor out utility to parse file by line 2018-02-02 22:36:49 +00:00
ot-fs-utils.h libotutil: factor out utility to parse file by line 2018-02-02 22:36:49 +00:00
ot-gio-utils.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-gio-utils.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-gpg-utils.c lib/gpg: Use g_spawn_sync to kill gpg-agent 2019-09-07 18:42:22 +00:00
ot-gpg-utils.h lib/gpg: Add helper to kill GPG agent 2019-06-19 17:30:24 +00:00
ot-keyfile-utils.c lib/keyfile: Treat "group not found" the same as "key not found" 2019-11-07 21:15:41 +00:00
ot-keyfile-utils.h libotutil: Add ot_keyfile_get_value_with_default_group_optional() 2019-03-01 21:20:35 +00:00
ot-opt-utils.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-opt-utils.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-tool-util.c lib/kargs: Make API public and upstream new rpm-ostree APIs 2019-06-18 14:29:14 +00:00
ot-tool-util.h lib/kargs: Make API public and upstream new rpm-ostree APIs 2019-06-18 14:29:14 +00:00
ot-unix-utils.c lib/util: Fix segfault when validating filename 2019-06-06 16:05:19 +00:00
ot-unix-utils.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-variant-builder.c lib: Port variant-builder.c to new style 2019-10-18 15:07:39 +00:00
ot-variant-builder.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-variant-utils.c Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ot-variant-utils.h Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
otutil.h sysroot: Handle ro /boot but rw /sysroot 2021-01-10 13:49:44 +00:00