From ArchWiki
Revision as of 13:09, 26 September 2012 by 65kid (talk | contribs) (Configuring: default.conf -> loader.conf)
Jump to navigation Jump to search

Gummiboot is a new UEFI bootloader written by Kay Sievers. It is simple to configure, but can only start EFI executables, such Linux (with CONFIG_EFI_STUB enabled), grub.efi, and such.


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).


Install gummibootAUR from AUR and copy the bootloader to the EFI partition:

# install -Dm0644 /usr/lib/gummiboot/gummiboot.efi $esp/EFI/gummiboot/gummiboot.efi

Then add it to the boot configuration: (only needs to be done once; skip this when upgrading)

# efibootmgr -c -L "Gummiboot" -l '\EFI\gummiboot\gummiboot.efi'

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.


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


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


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.
  • efi – EFI program to start; e.g. \EFI\arch\vmlinuz-linux.efi. Required.
  • options – Command-line options to pass to the EFI program. Optional, but you will need at least initrd=efipath and root=dev if booting Linux.

An example entry for Arch Linux:

title          Arch Linux
title-version  3.5-1
title-machine  067d8bfe
efi            \EFI\arch\vmlinuz-linux.efi
options        initrd=\EFI\arch\initramfs-linux.img root=PARTUUID=14420948-2cea-4de7-b042-40f67c618660 ro

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.

title          GRUB
efi            \EFI\arch\grub.efi

Separate boot and EFI partitions

TODO: link my kernel-post-upgrade stuff,

Inside the boot menu

TODO: document keybindings from