Package: vmdb2
Version: 0.13.2+git20190215-1
Severity: normal
To reproduce, install vmdb2 and autopkgtest on a Debian 10 VM and run:
autopkgtest-build-qemu --mirror=http://archive.ubuntu.com/ubuntu bionic
bionic.qcow2
This builds a fairly simple VM image with a DOS partition table, one big
root filesystem filling the disk, and:
- grub: bios
tag: root
console: serial
(Full contents of script:
<https://salsa.debian.org/ci-team/autopkgtest/blob/master/tools/autopkgtest-build-qemu>)
This works when installing Debian, but when installing Ubuntu it fails
at the "install grub" stage:
Installing GRUB for BIOS
Exec: ['mount', '--bind', '/dev', '/tmp/tmpuk1rs_6t/dev']
Exec: ['mount', '--bind', '/proc', '/tmp/tmpuk1rs_6t/proc']
Exec: ['mount', '--bind', '/sys', '/tmp/tmpuk1rs_6t/sys']
Exec: ['chroot', '/tmp/tmpuk1rs_6t', 'apt-get', '-y', '--no-show-progress',
'install', 'grub-pc']
Exec: ['chroot', '/tmp/tmpuk1rs_6t', 'grub-mkconfig', '-o',
'/boot/grub/grub.cfg']
Exec: ['chroot', '/tmp/tmpuk1rs_6t', 'grub-install', '--target=i386-pc',
'--no-nvram', '--force-extra-removable', '--no-floppy', '--modules=part_msdos
part_gpt', '--grub-mkdevicemap=/boot/grub/device.map', '/dev/loop3']
ERROR: Command failed: chroot /tmp/tmpuk1rs_6t grub-install --target=i386-pc
--no-nvram --force-extra-removable --no-floppy --modules=part_msdos part_gpt
--grub-mkdevicemap=/boot/grub/device.map /dev/loop3
b''
b"grub-install: unrecognized option '--force-extra-removable'\nTry
'grub-install --help' or 'grub-install --usage' for more information.\n"
Something went wrong, cleaning up!
This appears to be because --force-extra-removable is a Debian-specific
option, added by
<https://salsa.debian.org/grub-team/grub/blob/master/debian/patches/grub-install-extra-removable.patch>.
Ubuntu's grub reverses the logic so that grub is additionally
installed to the removable-media directory by default, and there is a
--no-extra-removable option to return to the upstream behaviour, with
a confusing commit message:
<https://git.launchpad.net/ubuntu/+source/grub2/tree/debian/patches/ubuntu-grub-install-extra-removable.patch>.
I think this would also be a problem if installing a non-Debian-derived OS.
smcv