mmdebstrap: Add mbr.bin installation to autopkgtest-build-qemu instructions

The generated image will not be bootable if `mbr.bin` is not installed
into the MBR.

These lines are copied from the "Debian desktop on USB stick" example.
This commit is contained in:
Gioele Barabucci 2022-02-13 20:00:30 +01:00
parent 8e6f183b3f
commit 5fa2457fd5

View file

@ -6861,6 +6861,8 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
part-set-bootable /dev/sda 1 true : \
mkfs ext4 /dev/sda1 : mount /dev/sda1 / : \
tar-in debian-unstable.tar / xattrs:true : \
upload /usr/lib/EXTLINUX/mbr.bin /boot/mbr.bin : \
copy-file-to-device /boot/mbr.bin /dev/sda size:440 : \
extlinux / : copy-in extlinux.conf / : sync : umount / : shutdown
$ qemu-img convert -O qcow2 debian-unstable.img debian-unstable.qcow2