fwupdmgr removed GRUB from my UEFI boot list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fwupd (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
== Introduction ==
This is going to sound very similar to bug 1900121, but I believe it's a different bug.
Today I tried to upgrade the system firmware and the Intel ME firmware on my ThinkPad X390 with `fwupdmgr upgrade` (after attempting to upgrade with snap-store failed with no indication of what was wrong, but that's not related to this bug).
When `fwupdmgr` asked me to reboot, I confirmed, and then I was called away from my laptop for a few minutes. I didn't see what happened during boot, but when I came back, I found my laptop booted into Windows. (This is a bug -- bug 1900121 probably -- but not the bug I'm reporting now). Since I was already there, I let Windows install its updates, which could be important. A few Windows reboots later I went into the UEFI setup to restore Ubuntu in the boot priority list, but I didn't find it there.
Then I booted a GRUB shell from a USB drive (by pressing F12 to get the boot menu), used `configfile (hd1,gpt1)
Then I checked with `sudo fwupdmgr upgrade` whether the firmware upgrades had been applied or not. They had not, so I let fwupdmgr install them. Then I did not let fwupdmgr reboot but decided to check the boot priority list in `efibootmgr -v`.
== The bug ==
fwupdmgr removed the `ubuntu` entry and replaced it with a second copy of the `Linux-
I suspect it's because the BootCurrent was pointing to the USB flash drive that I used for recovery, rather than the regular ubuntu entry.
== Details ==
efibootmgr -v when I rescue-booted:
| BootCurrent: 001E
| Timeout: 0 seconds
| BootOrder: 001A,0000,
| Boot0000* Windows Boot Manager HD(1,GPT,
| Boot0002* Linux-Firmware-
| Boot0010 Setup FvFile(
| Boot0011 Boot Menu FvFile(
| Boot0012 Diagnostic Splash Screen FvFile(
| Boot0013 Lenovo Diagnostics FvFile(
| Boot0014 Regulatory Information FvFile(
| Boot0015 Startup Interrupt Menu FvFile(
| Boot0016 Rescue and Recovery FvFile(
| Boot0017 MEBx Hot Key FvFile(
| Boot0018* USB CD VenMsg(
| Boot0019* USB FDD VenMsg(
| Boot001A* NVMe0 VenMsg(
| Boot001B* NVMe1 VenMsg(
| Boot001C* ATA HDD0 VenMsg(
| Boot001D* ATA HDD1 VenMsg(
| Boot001E* USB HDD VenMsg(
| Boot001F* PXE BOOT VenMsg(
| Boot0020 Other CD VenMsg(
| Boot0021 Other HDD VenMsg(
| Boot0022* IDER BOOT CDROM PciRoot(
| Boot0023* IDER BOOT Floppy PciRoot(
| Boot0024* ATA HDD VenMsg(
| Boot0025* ATAPI CD VenMsg(
| Boot0026 ThinkShield secure wipe FvFile(
| Boot0027* LENOVO CLOUD VenMsg(
| Boot0001* ubuntu HD(1,MBR,
efibootmgr -v after I ran grub-install /dev/nvme0n1
| BootCurrent: 001E
| Timeout: 0 seconds
| BootOrder: 0001,001A,
| Boot0000* Windows Boot Manager HD(1,GPT,
| Boot0001* ubuntu HD(1,GPT,
| Boot0002* Linux-Firmware-
| Boot0010 Setup FvFile(
| Boot0011 Boot Menu FvFile(
| Boot0012 Diagnostic Splash Screen FvFile(
| Boot0013 Lenovo Diagnostics FvFile(
| Boot0014 Regulatory Information FvFile(
| Boot0015 Startup Interrupt Menu FvFile(
| Boot0016 Rescue and Recovery FvFile(
| Boot0017 MEBx Hot Key FvFile(
| Boot0018* USB CD VenMsg(
| Boot0019* USB FDD VenMsg(
| Boot001A* NVMe0 VenMsg(
| Boot001B* NVMe1 VenMsg(
| Boot001C* ATA HDD0 VenMsg(
| Boot001D* ATA HDD1 VenMsg(
| Boot001E* USB HDD VenMsg(
| Boot001F* PXE BOOT VenMsg(
| Boot0020 Other CD VenMsg(
| Boot0021 Other HDD VenMsg(
| Boot0022* IDER BOOT CDROM PciRoot(
| Boot0023* IDER BOOT Floppy PciRoot(
| Boot0024* ATA HDD VenMsg(
| Boot0025* ATAPI CD VenMsg(
| Boot0026 ThinkShield secure wipe FvFile(
| Boot0027* LENOVO CLOUD VenMsg(
efibootmgr -v after fwupdmgr upgrade messed it up:
| BootNext: 0001
| BootCurrent: 001E
| Timeout: 0 seconds
| BootOrder: 0001,001A,
| Boot0000* Windows Boot Manager HD(1,GPT,
| Boot0001* Linux-Firmware-
| Boot0002* Linux-Firmware-
| Boot0010 Setup FvFile(
| Boot0011 Boot Menu FvFile(
| Boot0012 Diagnostic Splash Screen FvFile(
| Boot0013 Lenovo Diagnostics FvFile(
| Boot0014 Regulatory Information FvFile(
| Boot0015 Startup Interrupt Menu FvFile(
| Boot0016 Rescue and Recovery FvFile(
| Boot0017 MEBx Hot Key FvFile(
| Boot0018* USB CD VenMsg(
| Boot0019* USB FDD VenMsg(
| Boot001A* NVMe0 VenMsg(
| Boot001B* NVMe1 VenMsg(
| Boot001C* ATA HDD0 VenMsg(
| Boot001D* ATA HDD1 VenMsg(
| Boot001E* USB HDD VenMsg(
| Boot001F* PXE BOOT VenMsg(
| Boot0020 Other CD VenMsg(
| Boot0021 Other HDD VenMsg(
| Boot0022* IDER BOOT CDROM PciRoot(
| Boot0023* IDER BOOT Floppy PciRoot(
| Boot0024* ATA HDD VenMsg(
| Boot0025* ATAPI CD VenMsg(
| Boot0026 ThinkShield secure wipe FvFile(
| Boot0027* LENOVO CLOUD VenMsg(
what fwupdmgr says it did:
| • Thunderbolt Controller has the latest available firmware version
| • Embedded Controller has the latest available firmware version
| Upgrade available for Intel Management Engine from 192.71.1681 to 192.72.1757
| 20Q0CTO1WW must remain plugged into a power source for the duration of the update to avoid damage. Continue with update? [Y|n]: y
| Downloading… [******
| Decompressing… [******
| Authenticating… [******
| Updating Intel Management Engine…
| Scheduling… [******
| Successfully installed firmware
| • KXG6AZNV512G TOSHIBA has the latest available firmware version
| • Prometheus has the latest available firmware version
| • Prometheus IOTA Config has the latest available firmware version
| Upgrade available for System Firmware from 0.1.70 to 0.1.71
| 20Q0CTO1WW must remain plugged into a power source for the duration of the update to avoid damage. Continue with update? [Y|n]: y
| Downloading… [******
| Decompressing… [******
| Authenticating… [******
| Updating System Firmware…
| Scheduling… [******
| Successfully installed firmware
| • UEFI Device Firmware has no available firmware updates
| • UEFI Device Firmware has no available firmware updates
|
| An update requires a reboot to complete. Restart now? [y|N]:
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: fwupd 1.4.5-1
ProcVersionSign
Uname: Linux 5.8.0-50-generic x86_64
ApportVersion: 2.20.11-0ubuntu50.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 23 17:14:07 2021
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-06-12 (680 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: fwupd
UpgradeStatus: Upgraded to groovy on 2020-10-23 (182 days ago)
mtime.conffile.
mtime.conffile.
Forwarded upstream to https:/ /github. com/fwupd/ fwupd/issues/ 3186