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:
parent
8e6f183b3f
commit
5fa2457fd5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue