Quoting Francesco Poli (2022-02-24 23:14:43) > On Wed, 23 Feb 2022 00:03:01 +0100 Francesco Poli wrote: > > [...] > > I will (hopefully soon) try with TMPDIR=/dev/shm > > and let you know. > > Unfortunately, it does not seem to work this way, either. > > I: automatically chosen mode: unshare > I: chroot architecture amd64 is equal to the host's architecture > I: automatically chosen format: tar > I: using /dev/shm/mmdebstrap.kgUCDAC2QZ as tempdir > [...] > I: cleaning package lists and apt cache... > done > done > I: creating tarball... > I: done > I: removing tempdir /dev/shm/mmdebstrap.kgUCDAC2QZ... > I: success in 82.0568 seconds > libguestfs: error: open: usr/lib/SYSLINUX/mbr.bin: No such file or directory > > and the resulting 'debian-unstable.img' image (size: 8.0 GiB == 8.6 GB) > fails to boot with ("Booting from Hard Disk..." which never completes), > if I test it with the following command: > > $ qemu-system-x86_64 -enable-kvm -m 512 -serial > unix:/tmp/ttyS0,server,nowait -drive > "file=./debian-unstable.img,format=raw,cache=unsafe,if=virtio,index=0"
Yes, it fails because you don't have /usr/lib/SYSLINUX/mbr.bin on your system. Did you install the syslinux package? Sylinux/extlinux is the bootloader, so it makes sense that the result doesn't boot after this error message. Also notice, that the instructions of how to run all of this were recently streamlined by another user, so you might want to double-check that your scripts do the same thing: https://gitlab.mister-muffin.de/josch/mmdebstrap/src/branch/main/mmdebstrap#L6844 If you don't have any luck with extlinux, then I recently figured out a way to boot with grub2: $ mmdebstrap --include=linux-image-amd64,grub2,systemd-sysv unstable rootfs.tar $ guestfish -N debian-unstable.img=disk:2G -- \ part-disk /dev/sda mbr : \ part-set-bootable /dev/sda 1 true : \ mkfs ext2 /dev/sda1 : \ set-label /dev/sda1 rootfs : \ mount /dev/sda1 / : \ tar-in rootfs.tar / xattrs:true : \ command "grub-install /dev/sda" : \ command update-grub : \ sync : umount / : shutdown $ qemu-system-x86_64 -m 512M -enable-kvm debian-unstable.img This example is missing all the autopkgtest related bits but it's bootable. Thanks! cheers, josch
signature.asc
Description: signature