Gummiboot
Gummiboot is a UEFI boot manager written by Kay Sievers and Harald Hoyer. It is simple to configure, but can only start EFI executables, the Linux kernel EFISTUB, UEFI Shell, grub.efi, and such.
Contents |
Installation
Install gummiboot and install gummiboot in ESP:
# mount -t efivarfs efivarfs /sys/firmware/efi/efivars # ignore if already mounted # pacman -S gummiboot # gummiboot --path=$esp install
This will automatically copy the gummiboot binary to your EFI System Partition and create a boot entry in the EFI Boot Manager. If you are not booted via EFI, creating the boot entry will fail. You should however still be able to boot gummiboot as it copies the binary to the default EFI binary location on your ESP ($esp/EFI/boot/bootx64.efi on x64 systems) (unless a non-gummiboot $esp/EFI/boot/bootx64.efi is already present).
Configuration
Basic Configuration
The basic configuration is kept in $esp/loader/loader.conf, with just two possible configuration options:
-
default– default entry to select (without the.confsuffix); can be a wildcard likearch-*
-
timeout– menu timeout in seconds. If this is not set, the menu will only be shown when you hold the space key while booting.
Example:
$esp/loader/loader.conf
default arch timeout 4
Note that both options can be changed in the boot menu itself, which will store them as EFI variables.
Adding boot entries
Gummiboot searches for boot menu items in $esp/loader/entries/*.conf – each file found must contain exactly one boot entry. The possible options are:
-
title– operating system name. Required.
-
version– kernel version, shown only when multiple entries with same title exist. Optional.
-
machine-id– machine identifier from/etc/machine-id, shown only when multiple entries with same title and version exist. Optional.
-
efi– EFI program to start, relative to your ESP ($esp); e.g./vmlinuz-linux. Either this orlinux(see below) is required.
-
options– Command-line options to pass to the EFI program. Optional, but you will need at leastinitrd=efipathandroot=devif booting Linux.
For Linux, you can specify linux path-to-vmlinuz and initrd path-to-initramfs; this will be automatically translated to efi path and options initrd=path – this syntax is only supported for convenience and has no differences in function.
An example entry for Arch Linux:
$esp/loader/entries/arch.conf
title Arch Linux linux /vmlinuz-linux initrd /initramfs-linux.img options root=PARTUUID=14420948-2cea-4de7-b042-40f67c618660 rw
Please note in the example above that PARTUUID/PARTLABEL identifies a GPT partition, and differs from UUID/LABEL, which identifies a filesystem. Using the PARTUUID/PARTLABEL is advantageous because it is invariant if you reformat the partition with another filesystem. It is also useful if you do not have a filesystem on the partition (or use LUKS, which does not support LABELs).
You can also add other EFI programs such as \EFI\arch\grub.efi.
Keys
The following keys are used inside the menu:
-
Up/Down- select entry -
Enter- boot the selected entry -
d- select the default entry to boot (stored in a non-volatile EFI variable) -
-/T- decrease the timeout (stored in a non-volatile EFI variable) -
+/t- increase the timeout (stored in a non-volatile EFI variable) -
e- edit the kernel command line -
v- show the gummiboot and UEFI version -
Q- quit -
P- print the current configuration -
h/?- help
These hotkeys will, when pressed inside the menu or during bootup, directly boot a specific entry:
-
l- Linux -
w- Windows -
a- OS X -
s- EFI Shell -
1-9- number of entry
Troubleshooting
Manual entry using efibootmgr
If gummiboot install command failed, you can create a EFI boot entry manually using efibootmgr utility:
# efibootmgr -c -d /dev/sdX -p Y -l /EFI/gummiboot/gummibootx64.efi -L "Gummiboot"
where /dev/sdXY is the EFISYS partition.