You should be able to use
efibootmgr - unfortunately, I think you cannot change the label of an existing entry, but you can delete an entry and recreate it with a new label.
Proceed with caution.
Install the package
efibootmgr, then get the parameters of your current entries (the following example outputs are from my Arch system, but Fedora will look very similar):
ce@kat ~ % efibootmgr -v
Timeout: 1 seconds
Boot0000* GRUB-kat HD(1,GPT,575d768c-8e5a-4e1e-bf0d-e23ece5304a5,0x800,0x100000)/File(\EFI\GRUB-kat\grubx64.efi)
Boot0003* Samsung SSD 850 EVO M.2 250GB BBS(HD,,0x0)..BO
Boot0007* HL-DT-ST BD-RE BH16NS55 BBS(CDROM,,0x0)..BO
Boot000B* ST4000DM000-2AE166 BBS(HD,,0x0)..BO
You’ll need the
Boot<bootid> ID &
\EFI\GRUB-kat\grubx64.efi in my example output above. Then you can delete the Fedora entry:
ce@kat ~ % sudo efibootmgr -b <bootid> -B
and recreate it with the new label
ce@kat ~ % sudo efibootmgr -c -l '<path-to-grub-image>' -L <new label>
The path needs to be specified with
\ instead of
/, for reasons. The new entry should get the same ID as the old one, so your boot order etc. should be unchanged. If not, you can adapt it using
A somewhat safer pathway would be to first create the new entry and then delete the old once you know the new one works. In that case you definitely will have to adapt the boot order, because the new entry will have a new boot id.