I have a gentoo guest container which shares the /usr/src and /usr/lib/modules directories with the gentoo host. These paths are mounted as read-only on the host. When I try to emerge sys-apps/gawk-5.3.0-r1 on the guest it fails with a read-only filesystem error, even though none of the files from gawk are getting installed in that folder. All other ebuilds have merged perfectly fine on the guest. Reproducible: Always Steps to Reproduce: 1. Create a gentoo incus container on a gentoo host with shared host folders /usr/src and /usr/lib/modules mounted as read-only on guest 2. Try merging sys-apps/gawk-5.3.0-r1 on guest 3. See that merge fails with read-only filesystem error Actual Results: When I try to install sys-apps/gawk-5.3.0-r1 on the guest, it fails with a read-only filesystem error. Expected Results: sys-apps/gawk-5.3.0-r1 gets merged fine. Last few lines of portage emerge: >>> Done. * checking 104 files for package collisions * One or more files installed to this package are set to be installed to * read-only filesystems. Please mount the following filesystems as read- * write and retry. * * /usr/lib/modules * * Package 'sys-apps/gawk-5.3.0-r1' NOT merged due to read-only file * systems. If necessary, refer to your elog messages for the whole * content of the above message.
Created attachment 889166 [details] gawk-5.3.0-r1-file-list.txt I've attached the list of files I see in the image folder for gawk in /var/tmp/portage. None of the files are in /usr/lib/modules and there is no post-install step which is moving things there in the ebuild either.
Can you include emerge --info and build.log from the failure?