sysroot: Ensure deployment detection works when using composefs
authorAlexander Larsson <alexl@redhat.com>
Tue, 16 May 2023 08:17:32 +0000 (10:17 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 31 May 2023 08:57:37 +0000 (10:57 +0200)
commitd47a90347ba4e72ae223d4eb59287a42d32a5df0
tree3b5f0dcecd229260ffd76b4abc3e35f235097740
parent11d7587e403c897ad918ed8bc6d437e17f86c4c0
sysroot: Ensure deployment detection works when using composefs

In the case of composefs, we cannot compare the devino of the rootfs
and the deploy dir, because the root is the composefs mount, not a
bind mount. Instead we check the devino of the etc subdir of the
deploy, because this is a bind mount even when using composefs.
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c