| 1 |
This is efibootmgr, a Linux user-space application to modify the Intel |
| 2 |
Extensible Firmware Interface (EFI) Boot Manager. This application |
| 3 |
can create and destroy boot entries, change the boot order, change |
| 4 |
the next running boot option, and more. |
| 5 |
|
| 6 |
Details on the EFI Boot Manager are available from the EFI |
| 7 |
Specification, v1.02 or above, available from: http://www.uefi.org |
| 8 |
|
| 9 |
Note: efibootmgr requires either the efivarfs or the |
| 10 |
legacy efivars kernel module to be loaded prior to use. |
| 11 |
|
| 12 |
usage: efibootmgr [options] |
| 13 |
-a | --active Set bootnum active. |
| 14 |
-A | --inactive Set bootnum inactive. |
| 15 |
-b | --bootnum XXXX Modify BootXXXX (hex). |
| 16 |
-B | --delete-bootnum Delete bootnum. |
| 17 |
-c | --create Create new variable bootnum and add to bootorder. |
| 18 |
-d | --disk disk (Defaults to /dev/sda) containing loader. |
| 19 |
-e | --edd [1|3|-1] Force EDD 1.0 or 3.0 creation variables, or guess. |
| 20 |
-E | --device num EDD 1.0 device number (defaults to 0x80). |
| 21 |
-f | --reconnect Re-connect devices after driver is loaded. |
| 22 |
-F | --no-reconnect Do not re-connect devices after driver is loaded. |
| 23 |
-g | --gpt Force disk w/ invalid PMBR to be treated as GPT. |
| 24 |
-i | --iface name Create a netboot entry for the named interface. |
| 25 |
-l | --loader name (Defaults to \elilo.efi). |
| 26 |
-L | --label label Boot manager display label (defaults to "Linux"). |
| 27 |
-n | --bootnext XXXX Set BootNext to XXXX (hex). |
| 28 |
-N | --delete-bootnext Delete BootNext. |
| 29 |
-o | --bootorder XXXX,YYYY,ZZZZ,... Explicitly set BootOrder (hex). |
| 30 |
-O | --delete-bootorder Delete BootOrder. |
| 31 |
-p | --part part (Defaults to 1) containing loader. |
| 32 |
-q | --quiet Be quiet. |
| 33 |
-t | --timeout seconds Boot manager timeout. |
| 34 |
-T | --delete-timeout Delete Timeout value. |
| 35 |
-u | --unicode | --UCS-2 Pass extra args as UCS-2 (default is ASCII). |
| 36 |
-v | --verbose Print additional information. |
| 37 |
-V | --version Return version and exit. |
| 38 |
-w | --write-signature Write unique sig to MBR if needed. |
| 39 |
-@ | --append-binary-args Append extra variable args from |
| 40 |
file (use - to read from stdin). |
| 41 |
|
| 42 |
|
| 43 |
Typical usage: |
| 44 |
|
| 45 |
Root can use it to display the current Boot Manager settings. |
| 46 |
|
| 47 |
[root@localhost ~]# efibootmgr |
| 48 |
BootCurrent: 0004 |
| 49 |
BootNext: 0003 |
| 50 |
BootOrder: 0004,0000,0001,0002,0003 |
| 51 |
Timeout: 30 seconds |
| 52 |
Boot0000* Diskette Drive(device:0) |
| 53 |
Boot0001* CD-ROM Drive(device:FF) |
| 54 |
Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233) |
| 55 |
Boot0003* PXE Boot: MAC(00D0B7C15D91) |
| 56 |
Boot0004* Linux |
| 57 |
|
| 58 |
This shows: |
| 59 |
BootCurrent - the boot entry used to start the currently running |
| 60 |
system. |
| 61 |
|
| 62 |
BootOrder - the boot order as would appear in the boot manager. The |
| 63 |
boot manager tries to boot the first active entry on this list. If |
| 64 |
unsuccessful, it tries the next entry, and so on. |
| 65 |
|
| 66 |
BootNext - the boot entry which is scheduled to be run on next boot. |
| 67 |
This supersedes BootOrder for one boot only, and is deleted by the |
| 68 |
boot manager after first use. This allows you to change the next boot |
| 69 |
behavior without changing BootOrder. |
| 70 |
|
| 71 |
Timeout - the time in seconds between when the boot manager appears |
| 72 |
on the screen until when it automatically chooses the startup value |
| 73 |
from BootNext or BootOrder. |
| 74 |
|
| 75 |
Five boot entries (0000 - 0004), the active/inactive flag (* means |
| 76 |
active), and the name displayed on the screen. |
| 77 |
|
| 78 |
Alternative use cases could be as follows: |
| 79 |
|
| 80 |
1) An OS installer would call 'efibootmgr -c'. This assumes that |
| 81 |
/dev/sda1 is your EFI System Partition, and is mounted at /boot/efi. |
| 82 |
This creates a new boot option, called "Linux", and puts it at the top |
| 83 |
of the boot order list. Options may be passed to modify the |
| 84 |
default behavior. The default OS Loader is elilo.efi. |
| 85 |
|
| 86 |
2) A system administrator wants to change the boot order. She would |
| 87 |
call 'efibootmgr -o 3,4' to specify PXE boot first, then Linux |
| 88 |
boot. |
| 89 |
|
| 90 |
3) A system administrator wants to change the boot order for the next |
| 91 |
boot only. She would call 'efibootmgr -n 4' to specify that the |
| 92 |
Linux entry be taken on next boot. |
| 93 |
|
| 94 |
4) A system administrator wants to delete the Linux boot option from |
| 95 |
the menu. 'efibootmgr -b 4 -B' deletes entry 4 and removes it |
| 96 |
from BootOrder. |
| 97 |
|
| 98 |
5) A system administrator wants to create a boot option to network |
| 99 |
boot (PXE). You create the boot entry with: |
| 100 |
'efibootmgr -c -i eth0 -L netboot' |
| 101 |
|
| 102 |
Please direct any bugs, features, patches, etc. to the Red Hat bootloader |
| 103 |
team: |
| 104 |
|
| 105 |
https://github.com/rhboot/efibootmgr |