Skip to contentSkip to conversation

Next Arch Linux shim_lock error with latest grub.git

DISCUSSION Tobias Powalowski 2 participants 5 messages Jul 6, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi here reported by some people:

https://www.reddit.com/r/archlinux/comments/14rlz7x/latest_grub_error

any idea, why this happens?

From the comments section:

---

The actual error message that OP meant to say is |error: symbol 'grub_is_shim_lock_enabled' not found|.

So like a symbol from the symbol table?

I found this commit from Monday which adds |bool grub_is_shim_lock_enabled(void)|, so that would make sense why the latest GRUB release breaks and why downgrading works:
http://git.savannah.gnu.org/cgit/grub.git/commit/?id=6425c12cd77ad51ad24be84c092aefacf0875089 <http://git.savannah.gnu.org/cgit/grub.git/commit/?id=6425c12cd77ad51ad24be84c092aefacf0875089>

Though I don't understand the packaging protocol enough for why pacman gave me binaries without this symbol. Or why this is only an issue for a handful of people.

---

greetings

tpowa

Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]

#2 lore raw
In reply to a message not in the archive

Am 06.07.23 um 15:53 schrieb Daniel Kiper:

Quoted 11 lines

This and [1] suggest problems with updating the GRUB modules. The grub_is_shim_lock_enabled symbol is provided by the GRUB kernel. If for some reason the GRUB kernel is downgraded but modules are not then newer version of the linux.mod tries to call the function which does not exist. Please double check Arch linux properly updates the GRUB including the modules. In this case especially downgrades are prone to errors.

Daniel

[1] https://www.reddit.com/r/archlinux/comments/14rlz7x/comment/jqtoio9/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Hi Daniel,

thanks for clarification, so the issue is on the user's system and not a packaging bug.

greetings

tpowa

Signature · 13 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]
#3 lore raw
Quoted 9 lines · Tobias Powalowski via Grub-devel

Am 06.07.23 um 15:53 schrieb Daniel Kiper:

Quoted 8 lines

This and [1] suggest problems with updating the GRUB modules. The grub_is_shim_lock_enabled symbol is provided by the GRUB kernel. If for some reason the GRUB kernel is downgraded but modules are not then newer version of the linux.mod tries to call the function which does not exist. Please double check Arch linux properly updates the GRUB including the modules. In this case especially downgrades are prone to errors.

Quoted 8 lines
Quoted 3 lines

Daniel

[1] https://www.reddit.com/r/archlinux/comments/14rlz7x/comment/jqtoio9/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Hi Daniel,

thanks for clarification, so the issue is on the user's system and not a packaging bug.

Probably. If you could share with me a link to the binary/package which fails I could double check all symbols are in place.

Daniel

#4 lore raw
Quoted 4 lines

Probably. If you could share with me a link to the binary/package which fails I could double check all symbols are in place.

Daniel

Hi Daniel,

https://mirror.f4st.host/archlinux/core/os/x86_64/grub-2%3A2.06.r591.g6425c12cd-1-x86_64.pkg.tar.zst

Tobias

Signature · 13 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]