Closed ldts closed 5 months ago
The mount is happening as part of ostree-prepare-root.service
from ostree, which just calls into the composefs libraries to do the mount.
The answer to your question (btw, this seems better as a discussion e.g.) is that the erofs mount is unmounted from the global namespace here: https://github.com/containers/composefs/blob/fc9a526d921c2edd68cb66d8a82d4443083ed277/libcomposefs/lcfs-mount.c#L629 because it's an implementation detail. The overlayfs mounted on top holds a reference.
ahh, thanks a lot for the information @cgwalters
That said at least for debugging/introspection I could see it being useful to have an option to not unmount the erofs and leave it mounted somewhere. Or maybe it's even possible to somehow get access to the hidden mount from userspace, but AFAIK it's not currently.
I recently integrated composefs with OStree in our meta-lmp releases at Foundries.io; this is still work in progress in a private repository until we do more verifications but very likely to be released to all the platforms that we support in a couple of months
One thing I am missing is where the erofs mount is happening. Is this not visible as a mounted partition somewhere?