grub-multi-install offers wrong devices as ESP
Bug #1997795 reported by
Julian Andres Klode
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
grub-multi-install offers the wrong device as ESP if a previous partition was recognized, because it does not correctly reset state between loop iterations, causing people to be offered e.g. the entire disk device as an ESP, and then install to obviously fail.
[Test plan]
Launch a lxd VM, run
dpkg-reconfigure shim-signed
check that only the ESP appears.
Before the update, /dev/sda itself would appear as well.
[Where problems could occur]
Most importantly, some firmware are less restrictive about ESPs than grub-multi-install is, and if we previously accidentally "recognized" the partition as an ESP and now no longer do, grub does not get updated.
Related branches
~juliank/grub/+git/ubuntu:grub-multi-install-discovery
Merged
into
~ubuntu-core-dev/grub/+git/ubuntu:ubuntu
at
revision ae85cfba2cca4122aa699a06442b9f9e25d3a43e
- Ubuntu Core Development Team: Pending requested
-
Diff: 13 lines (+2/-0)1 file modifieddebian/grub-multi-install (+2/-0)
description: | updated |
To post a comment you must log in.
This bug was fixed in the package grub2 - 2.06-2ubuntu15
---------------
grub2 (2.06-2ubuntu15) lunar; urgency=medium
* grub-multi-install: Reset partition type between partitions (LP: #1997795)
-- Julian Andres Klode <email address hidden> Thu, 01 Dec 2022 16:30:53 +0100