lavabit / robox

The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
626 stars 139 forks source link

libvirt/debian10: grub-pc upgrade fails due to changed root device path #166

Open timschumi opened 4 years ago

timschumi commented 4 years ago

The grub-pc package saves the installation device during first setup, and complains if it can't be found later during an upgrade. It does so because the root device is SCSI-based during the initial installation (and it uses /dev/disk/by-id paths), but the image is later used as a VirtIO image.

One possible fix would be to overwrite the selection after the initial setup, but who knows if that is the best solution:

debconf-set-selections <<< "grub-pc grub-pc/install_devices string /dev/vda"