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
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added 'Generate and sign GRUB EFI' in readme.md
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.
#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!
  • Loading branch information
theomkumar authored Jan 17, 2022
commit 66cfa324c4b7d9c64e6d19c3e4bb6e284a15b214
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,15 @@ Enrolled bundles:
Generating EFI bundles....
Wrote EFI bundle /efi/EFI/Linux/linux-linux.efi
```

# 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!
```