Comment 4 for bug 2052643

Revision history for this message
Nelson Minar (g-nelson) wrote :

Thank you for taking the time to understand my bug report. I tried dpkg-reconfigure grub-efi-amd64 but it doesn't give me an option to select a new install device. I get interactive menus for three settings: Linux command line, Linux default command line, and Update NVRAM variables. There's nothing about selecting the install device. (Nor do I see one if I use the editor frontend). See below for an error log after answering those 3 menu questions, starting with Unknown device "/dev/disk/by-id/*": No such device

Is there another way to force dpkg to let me select a new install device?

I also tried dpkg-reconfigure on grub-efi-amd64-signed and on shim-signed and both just immediately print Unknown device "/dev/disk/by-id/*": No such device. I'm left wondering if these scripts just don't have error handling for this case.

BTW I understand now why there's no /dev/disk/by-id/. I'm using VirtIO disks in the newly virtualized server and that does not produce serial numbers for the disk devices. Not Debian/Ubuntu's doing really, but I do need a way to convince the GRUB debconf to reconfigure.

Here's the full error log from dpkg-reconfigure grub-efi-amd64.

Unknown device "/dev/disk/by-id/*": No such device
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-39-generic
Found initrd image: /boot/initrd.img-6.2.0-39-generic
Found linux image: /boot/vmlinuz-6.2.0-36-generic
Found initrd image: /boot/initrd.img-6.2.0-36-generic
Found linux image: /boot/vmlinuz-5.19.0-051900-generic
Found initrd image: /boot/initrd.img-5.19.0-051900-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Processing triggers for shim-signed (1.54+15.7-0ubuntu1) ...