[Bug 1939950] Re: shim-signed fails to upgrade when NVMe drive is moved into the VM as Virtio drive
Steve Langasek
1939950 at bugs.launchpad.net
Mon Aug 23 21:12:07 UTC 2021
*** This bug is a duplicate of bug 1940723 ***
https://bugs.launchpad.net/bugs/1940723
** This bug has been marked a duplicate of bug 1940723
shim-signed fails to install if grub disk config is incorrect
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shim-signed in Ubuntu.
https://bugs.launchpad.net/bugs/1939950
Title:
shim-signed fails to upgrade when NVMe drive is moved into the VM as
Virtio drive
Status in shim-signed package in Ubuntu:
New
Bug description:
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 gets this device
name 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/1939950/+subscriptions
More information about the foundations-bugs
mailing list