Comment 0 for bug 1939950

Revision history for this message
Wladimir Mutel (mwg) wrote :

I had to remove a NVMe storage (nvme0n1) from my laptop and temporarily brought it back as a VirtIO (vda) device under a VM. When I received shim-signed upgrade to version 1.51+15.4-0ubuntu9 , I got this :

Setting up shim-signed (1.51+15.4-0ubuntu9) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/nvme-eui.001b448b4993ceb4-part1 does not exist.
dpkg: error processing package shim-signed (--configure):
 installed shim-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Looking into /var/lib/dpkg/info/shim-signed.postinst , I see that it calls /usr/lib/grub/grub-multi-install which in turn queries some values from debconf DB, which it then fails to find among VM devices.

Looking into /var/cache/debconf/config.dat , I see it recorded under Name: grub-efi/install_devices , also its nvme0n1p1 partition recorded under Name: grub-efi/partition_description .
I am not sure whether it is safe to remove or modify these values by text editor, but running grub-install or dpkg-reconfigure grub-efi-amd64 as root does not change them .

Please help me to resolve this situation.