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'
- https://wiki.gentoo.org/wiki/Efibootmgr - slightly confusing examples right after 'then the loader paths will be', but otherwise nice
- https://linuxconfig.org/how-to-manage-efi-boot-manager-entries-on-linux
- https://discussion.fedoraproject.org/t/efibootmgr-nvme-how-to-create-entry-with-custom-label/75566
- https://codelucky.com/efibootmgr-command-linux/
- https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples
- https://www.rodsbooks.com/efi-bootloaders/installation.html - scroll down to "Registering the Boot Loader with the EFI"