Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EFI mess after upgrade #2875

Closed
mmorini opened this issue Apr 17, 2023 · 8 comments
Closed

EFI mess after upgrade #2875

mmorini opened this issue Apr 17, 2023 · 8 comments

Comments

@mmorini
Copy link

mmorini commented Apr 17, 2023

# clr-boot-manager update [same with swupd repair]

[ERROR] cbm (../src/bootloaders/shim-systemd.c:L284): Cannot create EFI variable (boot entry)
[ERROR] cbm (../src/bootloaders/shim-systemd.c:L285): Please manually update your bios to add a boot entry for Clear Linux

Already tried the /boot umounted partition cleanup (as seen in clearlinux/clr-boot-manager#179 ) and /sys/firmware/efi/efivars/ cleanup (seen here NixOS/nixpkgs#27821 (comment) ) therapies to no avail.

Now on

# swupd info
Distribution:      Clear Linux OS
Installed version: 38800
Version URL:       https://cdn.download.clearlinux.org/update
Content URL:       https://cdn.download.clearlinux.org/update

but had to boot older kernel Linux robin2 6.0.11-1216.native #1 SMP Fri Dec 2 09:14:14 PST 2022 x86_64 GNU/Linux
to have a working console.

@bryteise
Copy link
Member

So just to confirm, with boot not mounted it is empty and there are no EFI variable dumps in sysfs? Have you looked at your entries with efibootmgr? It is possible that the number of entries there is full though I haven't seen that myself but you might need to clean out entries through that tool.

@mmorini
Copy link
Author

mmorini commented Apr 17, 2023

Yessir, confirm both; efibootmgr is somewhat happy:

BootCurrent: 0004
No BootOrder is set; firmware will attempt recovery

Not sure what to do with this. I promise, cross my heart, I didn't touch anything with the BIOS settings.

@mmorini
Copy link
Author

mmorini commented Apr 17, 2023

And, FWIW,

# clr-boot-manager list-kernels
* org.clearlinux.native.6.2.11-1296
  org.clearlinux.ltscurrent.6.1.23-1282
  org.clearlinux.native.6.0.11-1216
  org.clearlinux.iot-lts2018-sos.4.19.195-115

@bryteise
Copy link
Member

Hrm with your EFI partition mounted on /boot what is in /boot/EFI/org.clearlinux ? Just to confirm it is matching what clr-boot-manager is seeing.

That said, it looks like the install worked and set the latest kernel to what I expect it to be. You might have a different and unrelated problem with the system not giving you a working console with the 6.2.11 kernel.

Could try removing quiet from the kernel commandline when you boot it and see if there is more detail available.

@mmorini
Copy link
Author

mmorini commented Apr 17, 2023

Found these folks tinkering with a similar issue: rhboot/efibootmgr#115 - (since my mobo is not completely dissimilar, I thought it may not be related with CL after all:

Base Board Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: PRIME B450-PLUS
        Version: Rev X.0x
 

@mmorini
Copy link
Author

mmorini commented Apr 17, 2023

Sure, thanks, will do. Re: #2875 (comment),

# ls /boot/EFI/org.clearlinux/ -lart
total 71435
drwxr-xr-x 4 root root      512 Aug 10  2020 ..
-rwxr-xr-x 1 root root 14345824 Sep 20  2021 kernel-org.clearlinux.iot-lts2018-sos.4.19.195-115
-rwxr-xr-x 1 root root 13724960 Dec  7 00:08 kernel-org.clearlinux.native.6.0.11-1216
-rwxr-xr-x 1 root root 13819104 Apr 12 10:50 kernel-org.clearlinux.ltscurrent.6.1.23-1282
-rwxr-xr-x 1 root root  2492796 Apr 12 10:50 freestanding-i915-firmware.cpio.xz
-rwxr-xr-x 1 root root 12151296 Apr 12 10:50 freestanding-00-early-ucode.cpio
-rwxr-xr-x 1 root root 15263616 Apr 16 18:41 kernel-org.clearlinux.native.6.2.11-1296
-rwxr-xr-x 1 root root  1202593 Apr 17 17:40 bootloaderx64.efi
-rwxr-xr-x 1 root root   144859 Apr 17 17:41 loaderx64.efi
drwxr-xr-x 2 root root     2048 Apr 17 17:41 .

@bryteise
Copy link
Member

Sure, thanks, will do. Re: #2875 (comment),

# ls /boot/EFI/org.clearlinux/ -lart
total 71435
drwxr-xr-x 4 root root      512 Aug 10  2020 ..
-rwxr-xr-x 1 root root 14345824 Sep 20  2021 kernel-org.clearlinux.iot-lts2018-sos.4.19.195-115
-rwxr-xr-x 1 root root 13724960 Dec  7 00:08 kernel-org.clearlinux.native.6.0.11-1216
-rwxr-xr-x 1 root root 13819104 Apr 12 10:50 kernel-org.clearlinux.ltscurrent.6.1.23-1282
-rwxr-xr-x 1 root root  2492796 Apr 12 10:50 freestanding-i915-firmware.cpio.xz
-rwxr-xr-x 1 root root 12151296 Apr 12 10:50 freestanding-00-early-ucode.cpio
-rwxr-xr-x 1 root root 15263616 Apr 16 18:41 kernel-org.clearlinux.native.6.2.11-1296
-rwxr-xr-x 1 root root  1202593 Apr 17 17:40 bootloaderx64.efi
-rwxr-xr-x 1 root root   144859 Apr 17 17:41 loaderx64.efi
drwxr-xr-x 2 root root     2048 Apr 17 17:41 .

That looks healthy to me at least. Sorry I am not more help. Hopefully you can find something helpful in that thread. Bios land can be quite weird.

@mmorini
Copy link
Author

mmorini commented Apr 17, 2023

Yep, there be dragons. Thanks a bunch, closing the issue.

@mmorini mmorini closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants