You are not logged in.

#26 2023-09-23 13:30:58

knightluffy
Member
Registered: 2023-09-23
Posts: 1

Re: GRUB update - symbol "grub_is_shim_lock_enabled" not found

Jark5455 wrote:

Maybe try disabling the shim lock in your grub-install command? I believe  the option is '--disable-shim-lock'

I have the same issue. When I run 'sudo grub-mkconfig -o /boot/grub/grub.cfg' on my arch linux and then restart arch linux, it will show 【symbol "grub_is_shim_lock_enabled" not found】 . After a lot of test, add --disbale-shim-lock worked for me. I run the command under the arch linux live cd with the following commands:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt

rm -rf /boot/grub
grub-install --target=x86_64-efi --efi-directory=/boot --disable-shim-lock
grub-mkconfig -o /boot/grub/grub.cfg

If I'm not add --disable-shim-lock in the live cd, the error will still show after I run 'sudo grub-mkconfig -o /boot/grub/grub.cfg'  and restart in the arch linux system the next time

Offline

#27 2023-10-05 01:20:44

matafan
Member
Registered: 2013-11-29
Posts: 7

Re: GRUB update - symbol "grub_is_shim_lock_enabled" not found

I ran into this same issue just now.

For me, the problem was that grub used to install itself under /EFI/GRUB/ on the EFI partition. But after a recent update, it looks like it now installs itself under /EFI/arch/ instead. So you end up with the new binary at /EFI/arch/grubx64.efi, but your bios still running the old /EFI/GRUB/grubx64.efi binary.

The solution was to change the boot list in my bios to run /EFI/arch/grubx64.efi instead of /EFI/GRUB/grubx64.efi. Then /EFI/GRUB can be deleted completely.

Offline

Board footer

Powered by FluxBB