Subiquity crashes trying remove duplicate UEFI entries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
--Related bug reports--
+ Invalid BootEntry while reordering boot entries on some UEFI implementations
https:/
--System--
Dell Inspiron 14 3443 (Intel Core i5-5200U) with 1 HDD reformatted (no zeroing) and previously used for dualbooting KDE neon and Windows 10. UEFI boot entry scrubbed clean through `efibootmgr` (i.e. delete everything then let the BIOS(?) restore the default boot entries ("Onboard NIC (IPV4)" and "Onboard NIC (IPV6)"). Legacy booting disabled in BIOS.
-- Base ISO used for installation--
ubuntu-
--Subiquity used for installation--
Manually built from commit 54465d16fabdccd
--Procedure for installation (as performed locally before the crash)--
1. Prepare a USB with Ventoy.
2. Build the Subiquity installer and inject into the 23.04 ISO.
3. Boot into the USB, ensuring it's booting from UEFI mode.
4. Select the patched ISO, boot in normal mode.
5. Select "Ubuntu Server" and "Search for third-party drivers". No drivers should be detected.
6. Select manual partitioning with the following scheme
(auto) fat32 /boot/efi 1.049G
ext4 /boot 5.000G
ext4 / 300.000G
ext4 /home 610.000G
swap 15.460G
7. Add OpenSSH server installation option, import SSH key from own GitHub account
--Expected behaviour--
Installer proceeded to finish normally
--Actual behaviour--
Installer crashed at "installing grub to target devices". Logs dumped from the installer environment's `/var/crash` and `/var/log/
efibootmgr's output immediately after installation failure (entries in {} are abbreviated):
BootCurrent: 1003
Timeout: 0 seconds
BootOrder: 0000,0001,0002
Boot0000* ubuntu HD(1, GPT, {UUID}, 0x800, 0x200000)
Boot0001* Onboard NIC (IPV4) {PCI slot, MAC, IP}
Boot0002* Onboard NIC (IPV4) {PCI slot, MAC, IP}
--Note--
1. Installation has been attempted before on the original 23.04 Server ISO. These attempts failed at UEFI boot entry reordering, which has been addressed in pull request 1671 (https:/
2. The workaround is to use the legacy 20.04 ISO, installing, then manually `sudo do-release-upgrade` to 23.04. Considering this is using a 5400RPM HDD, one single `do-release-
3. Attempts using the original ISO somehow yield "100A" as the boot entry.
4. I could just keep the power running on the thing to keep the state since I don't know what other logs is needed, but electricity bill is a thing.
Workaround found. Following https:/ /bugs.launchpad .net/subiquity/ +bug/2018280/ comments/ 3, setting
"remove_ duplicate_ entries" : False,
along with "reorder_uefi" did it.