REFIND-MKDEFAULT(8) | rEFInd Manual | REFIND-MKDEFAULT(8) |
refind-mkdefault - Set rEFInd as the default EFI boot option
refind-mkdefault [ -L|--label <name> ]
EFI booting normally relies on boot manager entries stored in NVRAM, which describe the locations of EFI boot programs and the order in which the firmware will attempt to launch them. In Linux, these entries can be created, deleted, and manipulated with the efibootmgr utility.
Many OSes and Linux packages assume that they should control the boot process, and so both create NVRAM boot entries for themselves and set these entries first in the boot order. If you intend rEFInd to control the boot process, though, such changes are undesirable and require adjustment via efibootmgr. Such adjustments are annoying to make and can be intimidating to non-experts.
The refind-mkdefault script simplifies matters: Running this script with no options sets rEFInd as the default boot program. The details of what the script does depends on the current state of the boot order list and existing boot entries:
A rEFInd entry is defined as one that contains the string refind (case-insensitive). This string could exist in the description or in the filename. The string used to define the rEFInd entry can be changed via the --label (-L) option.
The intent is that refind-mkdefault can be called after booting via GRUB or some other means to restore rEFInd as the default boot program. It can also be placed in a startup and/or shutdown script to restore rEFInd to its default position automatically. Because it does not re-write the boot order if rEFInd is listed as the first boot entry, this practice should be low in risk.
refind-mkdefault returns the following values:
Primary author: Roderick W. Smith (rodsmith@rodsbooks.com)
mvrefind(8), mkrlconf(8), refind-install(8), efibootmgr(8).
https://www.rodsbooks.com/refind/
The refind-mkdefault command is part of the rEFInd package and is available from Roderick W. Smith.
0.13.2 | Roderick W. Smith |