On 2025-03-31 23:37, Francesco Poli (wintermute) wrote: > I noticed that there's something missing in images created with > 'mmdebstrap-autopkgtest-build-qemu'. > > > After: > > $ mkdir -p ~/.cache/sbuild/build > $ cd /dev/shm > $ TMPDIR=/dev/shm mmdebstrap-autopkgtest-build-qemu \ > --size=25G --boot=efi sid unstable-autopkgtest-amd64.img > $ mv -i unstable-autopkgtest-amd64.img ~/.cache/sbuild/ > > I can run 'sbuild-qemu-boot': > > $ sbuild-qemu-boot --boot=efi --shared-dir $(pwd) > unstable-autopkgtest-amd64.img > > however, the '--shared-dir' option fails to work.
The solution to this is actually quite simple. All that is needed are these two lines [1], which in the guest create an fstab entry for a 9p filesystem with the ID 'sbuild-qemu'. This ID is poorly chosen, I'll name it to something more generic like 'host-shared' or whatever in the next release so that other tools can make use of the same feature if they want (regardless of sbuild-qemu-boot or not). Best, Christian [1]: https://sources.debian.org/src/sbuild/0.89.2/bin/sbuild-qemu-create-modscript/#L81-L82

