[Bug 1891718] Re: [Regression] breaks GRUB install on an nvme device
dann frazier
1891718 at bugs.launchpad.net
Tue Nov 3 23:16:41 UTC 2020
Verification:
ubuntu at blanka:~$ readlink /sys/dev/block/259\:3
../../devices/virtual/nvme-subsystem/nvme-subsys0/nvme0n1
ubuntu at blanka:~$ sudo apt install libefiboot1 libefivar1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
libefiboot1 libefivar1
2 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
Need to get 88.2 kB of archives.
After this operation, 9216 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 libefivar1 amd64 37-2ubuntu2.1 [47.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 libefiboot1 amd64 37-2ubuntu2.1 [40.4 kB]
Fetched 88.2 kB in 1s (172 kB/s)
(Reading database ... 143571 files and directories currently installed.)
Preparing to unpack .../libefivar1_37-2ubuntu2.1_amd64.deb ...
Unpacking libefivar1:amd64 (37-2ubuntu2.1) over (37-2ubuntu2) ...
Preparing to unpack .../libefiboot1_37-2ubuntu2.1_amd64.deb ...
Unpacking libefiboot1:amd64 (37-2ubuntu2.1) over (37-2ubuntu2) ...
Setting up libefivar1:amd64 (37-2ubuntu2.1) ...
Setting up libefiboot1:amd64 (37-2ubuntu2.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
ubuntu at blanka:~$ sudo grub-install
Installing for x86_64-efi platform.
Installation finished. No error reported.
ubuntu at blanka:~$
** Tags removed: verification-needed verification-needed-focal
** Tags added: verification-done verification-done-focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to efivar in Ubuntu.
https://bugs.launchpad.net/bugs/1891718
Title:
[Regression] breaks GRUB install on an nvme device
Status in Efivar:
New
Status in efivar package in Ubuntu:
Fix Released
Status in efivar source package in Focal:
Fix Committed
Status in efivar source package in Groovy:
Fix Released
Bug description:
[Impact]
Grub fails to install on systems with nvme-subsys storage when installing focal, or upgrading from bionic to focal. As symptom of the latter is shown below:
┌───────────────────────┤ Configuring shim-signed ├────────────────────────┐
│ │
│ GRUB failed to install to the following devices: │
│ │
│ /dev/nvme0n1p1 │
│ │
│ Do you want to continue anyway? If you do, your computer may not start │
│ up properly. │
│ │
│ Writing GRUB to boot device failed - continue? │
│ │
│ <Yes> <No>
I've hit this on 2 systems so far - a high-end Nvidia server and an
older ARM Server.
[Test Case]
On a system with an EFI System Partition residing on an nvme-subsys block device, run grub-install:
$ sudo /usr/sbin/grub-install
Installing for x86_64-efi platform.
/usr/sbin/grub-install: warning: Internal error.
/usr/sbin/grub-install: error: failed to register the EFI boot entry: Operation not permitted.
Also, regression test on a system with a non-nvme-subsys NVMe device.
[Regression Potential]
There's a risk that a parsing bug will introduce a regression to other systems - most at risk are systems with NVMe block devices. Supposedly nvme-fabrics systems were not previously supported and, as a side-effect of this backport, will now be. However, it's possible - like was the case with bionic/nvme-subsys - that nvme-fabrics *used* to happen to work, and now will work differently or even break. Ideally we'd be able to test on such a system, but I don't know where to find that hardware.
This fix has been in groovy since just after beta (minus an innocuous
debug statement that upstream requested during review), and the same
patches apply cleanly to focal, which should help mitigate the risk by
way of some real world exposure.
To manage notifications about this bug go to:
https://bugs.launchpad.net/efivar/+bug/1891718/+subscriptions
More information about the foundations-bugs
mailing list