rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
514 stars 97 forks source link

Doesn't work with 6.5 kernel on macbookpro13,1 #194

Closed xeron closed 2 months ago

xeron commented 12 months ago

So I was experimenting with Linux on macbookpro13,1. I know it might have weird Apple EFI but what I encountered is:

But /sys/firmware/efi/efivars is present on both kernel versions.

On 6.5 strace efibootmgr shows something like this:

statfs("/sys/firmware/efi/efivars", ...) ... EINVAL ...
...("/sys/firmware/efi/vars") ... ENOENT (No such file or directory)
xeron commented 12 months ago

Seems like it's a kernel bug.

alexmyczko commented 7 months ago

I have MacBookPro17,1 and efibootmgr 18 also /sys/firmware/efi/efivars but no luck, EFI variables are not supported on this system.

# ls /sys/firmware/efi/efivars/
AuditMode-8be4df61-93ca-11d2-aa0d-00e098032b8c
Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c
BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c
BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
DeployedMode-8be4df61-93ca-11d2-aa0d-00e098032b8c
LoaderDevicePartUUID-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
LoaderInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c
PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c
PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c
SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c
SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c
VendorKeys-8be4df61-93ca-11d2-aa0d-00e098032b8c
xeron commented 7 months ago

Try newer kernel. It was fixed at some point.