Quoting Francesco Poli (2022-03-01 00:49:50) > > > However, it leaves a lot of "production scrap" within /dev/shm : > > > > > > $ du --si -s /dev/shm/.guestfs-1000/ > > > 755M /dev/shm/.guestfs-1000/ > > > > > > More than 750 MB of "production scrap"! > > > > > > Why does guestfish do this? > > > > I don't know and I don't have these files in my own $TMPDIR. > > I added a > > rm -Rf ${TMPDIR}/.guestfs-*/ > > at the end of the script...
Interesting. I don't see a directory like that anywhere on my system. Not even while guestfish is running. > > In any case, if it works for you now, maybe you can close this bug? > > Well, I first need to check that it actually works as a testbed for > autopkgtest (this was the initial goal of this incredible journey, if > you recall!). Yes. :) > Moreover, I tried to modify the script to more closely follow the > [streamlined suggestions]. > > [streamlined suggestions]: > <https://gitlab.mister-muffin.de/josch/mmdebstrap/src/branch/main/mmdebstrap#L6844> > > And, after doing so, the image was no longer able to boot! > It hanged (seemingly forever) while booting from hard disk. > > I performed various tests (basically bisecting between the working > script and the failing one). > I found out that the issue was in the suggested 'extlinux.conf': > > $ diff -u bin/BAD_mmdebstrap-autopkgtest-qemu bin/mmdebstrap-autopkgtest-qemu > --- bin/BAD_mmdebstrap-autopkgtest-qemu 2022-03-01 00:05:16.418739282 +0100 > +++ bin/mmdebstrap-autopkgtest-qemu 2022-03-01 00:27:14.874469123 +0100 > @@ -134,7 +134,7 @@ > > label linux > kernel /vmlinuz > -append initrd=/initrd.img root=/dev/vda1 console=ttyS0 > +append initrd=/initrd.img root=/dev/vda1 rw net.ifnames=0 console=ttyS0 > EOF > > $GUESTFISH --new debian-unstable.img=disk:"$SIZE" -- \ > > > I don't understand why, but this is how I fixed the script. > Should the documentation be fixed? Yes, thank you! I can confirm that the "rw" kernel cmdline option is indeed essential (I don't know why) so thanks for finding this before I make a release with wrong instructions. Can you share the final version of your script? Maybe I should include it somewhere in the mmdebstrap packaging. Thanks! cheers, josch
signature.asc
Description: signature