Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938476 - sys-boot/efibootmgr: Depending on capitalization of --loader argument, --unicode fails on 18-r1
Summary: sys-boot/efibootmgr: Depending on capitalization of --loader argument, --unic...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-24 23:22 UTC by Guilherme Bember Duarte
Modified: 2024-08-25 15:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Bember Duarte 2024-08-24 23:22:13 UTC
If I run efibootmgr -c -d /dev/nvme0n1 -p 1 -L "Gentoo via Shim" -l '\EFI\gentoo\shimx64.efi' -u '\EFI\gentoo\bzImage.efi'
It tries to add \EFI\gentoo\bzImage.efi as another file to boot resulting in
Boot0003* Gentoo via Shim	HD(1,GPT,c12a7328-f81f-11d2-ba4b-00a0c93ec93b,0x800,0x200000)/File(\EFI\gentoo\shimx64.efi) File(.\EFI\gentoo\bzImage.efi)

But if I instead run efibootmgr -c -d /dev/nvme0n1 -p 1 -L "Gentoo via Shim" -l '\efi\gentoo\shimx64.efi' -u '\EFI\gentoo\bzImage.efi'
Notice the "\efi" instead of "\EFI"
It generates a proper entry
Boot0003* Gentoo via Shim	HD(1,GPT,c12a7328-f81f-11d2-ba4b-00a0c93ec93b,0x800,0x200000)/File(\efi\gentoo\shimx64.efi)\EFI\gentoo\bzImage.efi with "\EFI\gentoo\bzImage.efi" as an argument

This doesn't seem to happen on 17-r1, so maybe this is a regression and the latest version should be marked as unstable
Comment 1 Guilherme Bember Duarte 2024-08-25 00:09:51 UTC
After updating back to 18-r1, I'm not sure what's happening here, the entry still is wrong: Boot0003* Gentoo via Shim	HD(1,GPT,c12a7328-f81f-11d2-ba4b-00a0c93ec93b,0x800,0x200000)/File(\EFI\gentoo\shimx64.efi) File(.\EFI\gentoo\bzImage.efi),
so it might just be an error when printing the boot entry, and not when writing it.
Comment 2 Mike Gilbert gentoo-dev 2024-08-25 15:39:49 UTC
Report the issue upstream please.