ostree-remount: Don't skip remount if root is composefs
authorAlexander Larsson <alexl@redhat.com>
Fri, 26 May 2023 10:53:57 +0000 (12:53 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 31 May 2023 08:57:37 +0000 (10:57 +0200)
commitf9bdc66649a90e8834d5fa9adb65ede9b2453b8b
tree433a4567d4e27261359faf36c6b65181814eddd5
parentd47a90347ba4e72ae223d4eb59287a42d32a5df0
ostree-remount: Don't skip remount if root is composefs

When using composefs the root fs will always be read-only, but in this
case we should still continue remounting /sysroot. So, we record a
/run/ostree-composefs-root.stamp file in ostree-prepare-root if composefs
is used, and then react to it in ostree-remount.
src/switchroot/ostree-mount-util.h
src/switchroot/ostree-prepare-root.c
src/switchroot/ostree-remount.c