-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
NixOS doesn’t boot: symbol grub_is_shim_lock_enabled not found #243026
Comments
I have this exact same issue. Also verified problem to Asus X200ca Notebook |
UPDATE It worked. I don't secure boot, not sure why that option is necessary with the new grub, it's never been before. |
Same issue here. How do I downgrade GRUB? Update 2023-07-22I tried to set boot.loader.grub = {
extraGrubInstallArgs = [
"--disable-shim-lock"
];
}; but I still ended up with the symbol not found issue. I then checked if I could set the version of 🤦🏿♂️ Noticed that my nixpkgs was tracking 💡 For the future it would be helpful to have an idiomatic and user-friendly (easy) way to set the version of grub2 more granularly. Like a |
While booted normally I did the following: Used EFIBOOTMGR to remove the one boot entry I had for my existing installation. I am now able to boot into my machine using the most recent grub with no issues. Prior to this, I had three grubx64.efi files in my EFI directory on my ESP. Each one had a different path within /boot/EFI This was due to me erroneously faltering around and choosing different paths during various grub-install commands, after routine grub updates. This was going on since last December when my system was built. I now only have one grubx64.efi file in my EFI folder . It's path is /boot/EFI/GRUB/grubx64.efi. |
@mneiner, wouldn't your workaround break your system again the next time you run Didn't even think about imperatively running the commands you listed. In fact, I didn't in my wildest imagination expect something like [UPDATE]: 🤦🏿♂️ I did a poor job of reading the thread and just noticed you're on Arch indeed, so ignore my question above. In your setup, you never run I would definitely be nervous about directly fiddling around in the |
I had the same issue when I upgraded my flake a couple of weeks ago. Today I decided to upgrade again, by
After rebooting everything worked fine. I undid my changes to config (from step 1 above). Now, I am not sure if this issue has already been fixed by grub/Nix or if my config changes fixed the issue, either way I have a working system now. |
From what I gathered from the comments this has something to do with a version mismatch when re-installing grub? But why doesn't nixos-rebuild boot --install-bootloader fix the issue then? Bug closed as invalid: https://savannah.gnu.org/bugs/index.php?64406 |
I meet this issue recently as well. re-ynd's method, enabling efiInstallAsRemovable, is worked for me. IMO, is this a grub bug right? |
@re-ynd ‘s solution worked for me. Thanks a lot! |
Just upgraded my RPi 4 to 23.11 and ended up with a non-bootable system with this error. Prior NixOS generations don't help obviously. I sure end up with a non-bootable NixOS system a lot more frequently than I would have expected. |
Booted into a 23.11 recovery image, May just be a Pi4 or ZFS issue I guess. Sigh. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/pi4-broken-on-23-11-uefi-zfs-root/36375/1 |
Taking the same steps as above but backing up then blowing away After it was booting, I repopulated the EFI files (from the backup -- so no changes), switched back to Thanks to some solid input in this thread, I think I'll give a shot to systemd-boot going forward. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/pi4-broken-on-23-11-uefi-zfs-root/36375/5 |
I've also been affected by this, when upgrading from 23.05 to 23.11. This is on a Thinkpad t440s, not a RPi. IIRC, I installed Nixos on this machine via NIXOS_LUSTRATE several years ago, which is why I had an already existing dual boot setup with Grub and a separate /boot The boot specific configuration in my /etc/nixos/configuration.nix included:
(and a Since it seems that gummiboot/systemd-boot is arguably simpler, and sometimes recommended. I followed n8henrie's steps in the Discourse thread, to switch away from Grub, I deleted all of the above configuration, and changed Now everything seems to work as expected. I also took the opportunity to clean up a bunch of cruft in the ESP, the efi boot entries and also the whole of the old /boot partition (now that support for XBOOTLDR landed recently, I'll consider using it with systemd-boot after I'll upgrade to 24.05, but for now I have enough space) |
I ran into this problem when upgrading from 23.05 to 24.05 on a Thinkpad P14S Gen 2. Solved by booting from a live disk and following the instructions of re-ynd's comment. I tried skipping step 2 (emptying I struggled with the correct mount commands and correct parameters to |
Describe the bug
Hi, my nixos refuses to boot, fails with error: symbol grub_is_shim_lock_enabled not found. NixOS is 23.11…
Steps To Reproduce
https://git.sr.ht/~mangoiv/dotfiles/tree/78c76199650aac59014cc91d6a6c56177c6af52e
Expected behavior
nixos boots
Additional context
Seems like a bug introduced by very recent changes in grub:
https://forum.endeavouros.com/t/latest-grub-bricked-my-system-grub-is-shim-lock-enabled-not-found/42879
I think downgrading grub for the time being might be an okay solution
Notify maintainers
Metadata
n/a - see flake lock for hashes. Should be as recent as 23/07/11
The text was updated successfully, but these errors were encountered: