Skip to content

Instantly share code, notes, and snippets.

@sogaiu
Last active June 11, 2026 09:11
Show Gist options
  • Select an option

  • Save sogaiu/5bf78183a8ce425ae255cbbeed71ff53 to your computer and use it in GitHub Desktop.

Select an option

Save sogaiu/5bf78183a8ce425ae255cbbeed71ff53 to your computer and use it in GitHub Desktop.
using efibootmgr to edit entries

use efibootmgr to show existing entries:

# efibootmgr

(-v can give more info)

creating a boot entry is a little involved...for nvme drive, use names like nvme0n1 for --disk / -d, likely the esp paritition (where the bootloader lives) is partition 1, so -p 1

# efibootmgr -c -d /dev/nvme0n1 -p 1 -L alpine -l '\EFI\alpine\grubx64.efi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment