systemd-boot

On this page 7

systemd-boot is a minimal UEFI boot manager maintained as part of the systemd project that presents a menu of boot entries stored on the EFI System Partition (ESP) and hands control to the selected kernel or EFI program. In Linux system initialization, it occupies the stage between the firmware and the kernel, before initramfs and the init system take over.

Originally developed as gummiboot and merged into systemd in 2015, it deliberately does far less than GRUB: it has no BIOS support, no scripting language and, by default, no filesystem drivers of its own. That narrow scope makes its configuration short, its behavior predictable and its boot path easy to audit.

How systemd-boot starts a Linux kernel

systemd-boot runs as an EFI application that the firmware loads from the ESP, usually from /EFI/systemd/systemd-bootx64.efi or the fallback path /EFI/BOOT/BOOTX64.EFI. It relies on the firmware’s FAT driver to read files, which is why kernels and initramfs images must sit on a FAT-formatted partition that the firmware can access.

At startup it reads the global configuration in /loader/loader.conf, collects entries from several sources, sorts them and either shows a menu or boots the default after a timeout. For a Linux entry, it loads the kernel image and initramfs into memory, passes the kernel command line and jumps into the kernel through the EFI stub, a small piece of code built into modern Linux kernels that lets the firmware execute them directly.

The boot manager also writes several EFI variables that describe what happened, such as the selected entry and timestamps. Tools like systemd-analyze read these values to report firmware time and loader time separately from kernel and userspace startup.

The following table lists the sources from which systemd-boot assembles its menu.

SourceLocationTypical content
Type 1 entry files/loader/entries/*.conf on the ESP or XBOOTLDRKernel, initramfs and options as text
Type 2 unified kernel images/EFI/Linux/*.efiKernel, initramfs and command line in one signed file
Auto-detected entriesKnown paths on the ESPWindows Boot Manager, EFI shell, macOS
Firmware setup entryGenerated by the boot managerReboot into UEFI setup
Where systemd-boot finds its boot entries

Boot Loader Specification entries and loader.conf

systemd-boot implements the Boot Loader Specification (BLS), a distribution-neutral format in which every installed kernel gets its own small drop-in file. This design means that package managers add and remove entries without regenerating a central configuration file, which is the main workflow difference from GRUB.

A Type 1 entry contains a handful of keys, while loader.conf controls global menu behavior. The table below summarizes the most important settings in both files.

KeyFilePurpose
titleEntry fileText shown in the menu
linuxEntry filePath to the kernel image on the partition
initrdEntry filePath to one or more initramfs images
optionsEntry fileKernel command line, including root=
defaultloader.confGlob pattern selecting the default entry
timeoutloader.confSeconds before the default boots; 0 hides the menu
editorloader.confAllows or forbids editing the command line at boot
Common keys in entry files and loader.conf

The kernel-install tool and distribution hooks generate these files automatically when a new kernel package arrives. The optional XBOOTLDR partition, identified by its own partition type GUID, can hold the entries and kernels when the ESP is too small, which is a frequent problem on systems where Windows created a 100 MB ESP.

Administrators manage the installation with bootctl. The command bootctl install copies the binary and registers it in the firmware boot order, bootctl update refreshes it, bootctl list shows parsed entries and bootctl status reports Secure Boot state and the active loader.

systemd-boot compared with GRUB and direct EFI stub booting

Choosing systemd-boot is essentially a choice of simplicity over flexibility. GRUB is the default on most mainstream distributions because it covers almost every hardware and storage scenario, while systemd-boot covers the common UEFI case with a fraction of the code.

Propertysystemd-bootGRUBEFI stub without manager
Firmware supportUEFI onlyUEFI and legacy BIOSUEFI only
Filesystem accessFirmware FAT, optional EFI driversOwn drivers for ext4, Btrfs, XFS and moreFirmware FAT only
ConfigurationOne file per entryGenerated grub.cfg with scriptingFirmware boot variables
Encrypted /bootNot supportedSupported for LUKSNot supported
Interactive menuSimple listFull menu and shellFirmware menu only
Code size and audit effortSmallLargeMinimal
Comparison of Linux boot approaches on UEFI systems

The direct EFI stub approach removes the boot manager entirely, but every kernel change then requires editing NVRAM boot variables, which some firmware handles poorly. systemd-boot keeps that firmware interaction to a single, stable entry.

Unified kernel images, Secure Boot and boot counting

A unified kernel image (UKI) combines the kernel, initramfs, command line and optional splash into one PE binary built around systemd-stub. Because the whole bundle can be signed as a single file, UKIs give systemd-boot a clean path to measured and verified boot, and systemd-boot lists them without any entry file.

systemd-boot itself is not signed by Microsoft. On machines with Secure Boot enabled, administrators either sign it with their own enrolled keys or chain it behind the shim loader that many distributions already ship. Recent versions can also enroll custom keys from the ESP when the firmware is in setup mode.

Automatic boot assessment adds a counter to an entry file name, for example +3 for three tries. Each failed start decrements the counter, and once a successful boot is confirmed by systemd-bless-boot.service, the counter is removed. An entry that reaches zero is sorted to the end, so the system falls back to a known-good kernel without manual intervention.

When to choose systemd-boot and common mistakes

systemd-boot is a strong default for UEFI-only laptops and servers with an unencrypted ESP and kernels managed by kernel-install. It is a weaker fit where legacy BIOS hardware, encrypted boot partitions or complex multi-boot arrangements are required. The following decision table summarizes typical situations.

SituationRecommended choiceReason
Modern UEFI desktop, single Linuxsystemd-bootShort configuration and fast menu
Fleet using signed UKIssystemd-bootNative UKI discovery and boot counting
Legacy BIOS hardwareGRUBsystemd-boot cannot run without UEFI
Kernels on ext4 or Btrfs onlyGRUB or EFI driversFirmware cannot read those filesystems
LUKS-encrypted /bootGRUBsystemd-boot cannot unlock volumes
Decision guide for selecting a boot manager
  • Placing kernels on the root filesystem: systemd-boot cannot see them unless they are copied to the ESP or XBOOTLDR.
  • Undersized ESP: several kernels with large initramfs images can fill a small partition and break updates.
  • Leaving the editor enabled: anyone at the console can append init=/bin/sh to the command line, so set editor no on exposed machines.
  • Forgetting `bootctl update`: an outdated binary on the ESP may not understand newer entry features.

The simple explanation

When a computer switches on, its built-in firmware needs to know which operating system to start. systemd-boot is a small menu program that sits in a special partition and answers that question. It shows a short list of installed Linux versions, and sometimes Windows, then starts the one chosen.

Think of it as a simple table of contents rather than a whole library. Each Linux version gets its own tiny card describing where its files are. Because systemd-boot only reads those cards and does little else, it is quick, easy to understand and hard to break, but it will not work on very old computers without UEFI.

How it is used in practice

A small engineering team runs 40 UEFI laptops on a rolling-release Linux distribution. The administrator installs systemd-boot with bootctl install, enlarges the ESP to 1 GB during provisioning and sets timeout 2 and editor no in loader.conf. Every kernel update triggers kernel-install, which writes a new entry file with a boot counter of three tries and keeps the previous kernel as a fallback.

One update ships a kernel that fails to start on a specific graphics chipset. On the affected laptops, the counter runs down after three failed attempts and systemd-boot automatically selects the older kernel. The result is that users lose only a few minutes instead of needing a technician, and the administrator sees the failed entry in bootctl list and pins the working version until a fix arrives.