where /dev/sdX is the drive and Y is the partition number of your UEFISYS partition.

+

where /dev/sd''X'' is the drive and ''Y'' is the partition number of your UEFISYS partition.

{{note|{{ic|efibootmgr}} can be used only when already booted in UEFI mode. If you do not have another UEFI bootloader set up, you can either run {{ic|gummiboot.efi}} from the UEFI Shell, or copy it to the "default" location {{ic|$esp/EFI/boot/bootx64.efi}} for x86_64 systems.}}

{{note|{{ic|efibootmgr}} can be used only when already booted in UEFI mode. If you do not have another UEFI bootloader set up, you can either run {{ic|gummiboot.efi}} from the UEFI Shell, or copy it to the "default" location {{ic|$esp/EFI/boot/bootx64.efi}} for x86_64 systems.}}

Line 76:

Line 77:

efi /shellx64.efi

efi /shellx64.efi

}}

}}

+

+

== Automatic copy on update ==

+

+

The copying of the {{ic|/usr/lib/gummiboot/gummiboot*.efi}} to the EFI System partition can be automated with systemd (as can eg. be done for the [[UEFI_Bootloaders#Sync_EFISTUB_Kernel_in_UEFISYS_partition_using_Systemd|EFISTUB kernel]]):

Change {{ic|gummibootx64.efi}} to {{ic|gummibootia32.efi}} for a 32-bit UEFI system.

+

+

After creating the files run:

+

+

# systemctl enable gummiboot_copy.path

+

# systemctl start gummiboot_copy.path

== Separate boot and EFI partitions ==

== Separate boot and EFI partitions ==

Revision as of 14:57, 26 November 2012

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 (with CONFIG_EFI_STUB enabled), grub.efi, and such.

Note:

In the following steps replace $esp with path to your EFI System Partition, which is normally mounted on /boot/efi (although some users have it on /boot directly).

where /dev/sdX is the drive and Y is the partition number of your UEFISYS partition.

Note: efibootmgr can be used only when already booted in UEFI mode. If you do not have another UEFI bootloader set up, you can either run gummiboot.efi from the UEFI Shell, or copy it to the "default" location $esp/EFI/boot/bootx64.efi for x86_64 systems.

Configuring

The basic configuration is kept in $esp/loader/loader.conf, with just two possible configuration options:

default – default entry to select (without the .conf suffix); can be a wildcard like arch-*

timeout – menu timeout in seconds. If this is not set, the menu will only be shows 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

Note:

If you have separate partitions for /boot and /boot/efi, you must copy the kernel and initramfs to the EFI partition. Gummiboot does not support loading kernels from other partitions than itself. See the section below on how to automate this.

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.

title-version – kernel version, shown only when multiple entries with same title exist. Optional.

title-machine – machine identifier (usually first few letters from /etc/machine-id, shown only when multiple entries with same title+version exist. Optional.

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.

You can also add other EFI programs such as \EFI\arch\grub.efi or \EFI\Microsoft\Boot\Bootmgfw.efi (the Windows 7 boot manager). The EFI Shell, if installed, will be shown automatically.

$esp/loader/entries/shell.conf

title UEFI Shell
efi /shellx64.efi

Automatic copy on update

The copying of the /usr/lib/gummiboot/gummiboot*.efi to the EFI System partition can be automated with systemd (as can eg. be done for the EFISTUB kernel):