EFISTUBMGR(1)
EFISTUBMGR(1) | General Commands Manual | EFISTUBMGR(1) |
NAME
efistubmgr
—
generate EFISTUB boot entries
SYNOPSIS
efistubmgr |
[-hv ] [-d
disk] [-p
partition] [--fake ]
[entry ...] |
DESCRIPTION
The efistubmgr
utility generates EFI boot
entries for the Linux kernel as an EFI executable (EFISTUB).
Internally, efistubmgr
uses
efibootmgr(8)
to add and remove EFI boot entries.
Command line options override options from the configuration file. The options are as follows:
-d
disk,--disk
disk- Set the disk containing the EFI system partition (defaults to /dev/sda).
-h
,--help
- Print the help message and exit.
-p
partition,--part
partition- Set the partition number containing the EFI system partition (defaults to 1).
-v
,--version
- Print version information and exit.
--fake
- Print what would be executed on the invocation of
efistubmgr
without adding or modifying EFI boot entries. This option is useful for debugging and testing changes to /etc/efistubmgr.conf. - entry ...
- Entries to regenerate.
FILES
- /etc/efistubmgr.conf
- The default
efistubmgr
configuration file. See efistubmgr.conf(5) for more information. - EFI System Partition
- This partition (also called ESP) contains the boot loaders and kernel
images for all installed operating systems. By default
efistubmgr
uses /dev/sda.efistubmgr
sets the kernel and initramfs values for boot entries to files inside this partition.One can find the EFI system partition by locating the partition with type EFI System, for example, by running the below command as root and looking for the partition in the list.
# fdisk -l /dev/sda
EXIT STATUS
The efistubmgr
utility exits 0 on
success, and >0 if an error occurs. It can fail for any of these
reasons:
- The configuration file /etc/efistubmgr.conf was invalid.
- No boot entries were specified in /etc/efistubmgr.conf.
- efibootmgr(8) was not installed.
SEE ALSO
February 3, 2022 | ilposton.com |