Skip to content
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

Added 'Generate and sign GRUB EFI' to readme.md #123

Closed
wants to merge 1 commit into from

Conversation

theomkumar
Copy link

@theomkumar theomkumar commented Jan 17, 2022

Added this to readme.md, it'll save someone a lot of time, it fixes grub rescue error,

Generate and sign GRUB EFI

# sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --modules="normal test efi_gop efi_uga search echo linux all_video gfxmenu gfxterm_background gfxterm_menu gfxterm loadenv configfile tpm" --disable-shim-lock

Installing for x86_64-efi platform.
Installation finished. No error reported.

# sbctl sign -s /boot/efi/EFI/GRUB/grubx64.efi
✓ Signed /boot/efi/EFI/GRUB/grubx64.efi
// Reboot!

I was editing grub config to chainload EFI, though the solution was pretty simple.
#91 - I looked up at this issue before I started messing with grub config, as a noobie I couldn't do it properly, I did grub-install and sign grubx64.efi but in /EFI/Manjaro/grubx64.efi which obviously didn't fix the issue.
I also made lots of rookie mistakes that I'll address with fixes, Hope this helps out some noobie like me!

Added this to readme.md, it'll save someone a lot of time, it fixes grub rescue error, 

# GRUB with secure boot
```
# sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --modules="normal test efi_gop efi_uga search echo linux all_video gfxmenu gfxterm_background gfxterm_menu gfxterm loadenv configfile tpm" --disable-shim-lock

Installing for x86_64-efi platform.
Installation finished. No error reported.

# sbctl sign -s /boot/efi/EFI/GRUB/grubx64.efi
✓ Signed /boot/efi/EFI/GRUB/grubx64.efi
// Reboot!
```
I was editing grub config to chainload EFI, though the solution was pretty simple.
Foxboron#91 - I looked up this issue at this before I started messing with grub.config, as a noobie i couldn't do it  -I did grub-install and sign grubx64.efi but in /EFI/Manjaro/grubx64.efi which obviously didn't fix the issue. 
I also made lots of rookie mistakes which ill address with fixes, Hope this helps some noobie like me!
@Foxboron
Copy link
Owner

The README is suppose to be for examples how sbctl. This portion belongs on a wiki page or something for debugging issues specific for each bootloader.

Argueably this is already described in the Arch Wiki, although a bit confused considering it's only mentioned in passing under the shim usage.

https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot#Shim_with_key_and_GRUB

@theomkumar theomkumar closed this Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants