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.
| Source | Location | Typical content |
|---|---|---|
| Type 1 entry files | /loader/entries/*.conf on the ESP or XBOOTLDR | Kernel, initramfs and options as text |
| Type 2 unified kernel images | /EFI/Linux/*.efi | Kernel, initramfs and command line in one signed file |
| Auto-detected entries | Known paths on the ESP | Windows Boot Manager, EFI shell, macOS |
| Firmware setup entry | Generated by the boot manager | Reboot into UEFI setup |
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.
| Key | File | Purpose |
|---|---|---|
title | Entry file | Text shown in the menu |
linux | Entry file | Path to the kernel image on the partition |
initrd | Entry file | Path to one or more initramfs images |
options | Entry file | Kernel command line, including root= |
default | loader.conf | Glob pattern selecting the default entry |
timeout | loader.conf | Seconds before the default boots; 0 hides the menu |
editor | loader.conf | Allows or forbids editing the command line at boot |
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.
| Property | systemd-boot | GRUB | EFI stub without manager |
|---|---|---|---|
| Firmware support | UEFI only | UEFI and legacy BIOS | UEFI only |
| Filesystem access | Firmware FAT, optional EFI drivers | Own drivers for ext4, Btrfs, XFS and more | Firmware FAT only |
| Configuration | One file per entry | Generated grub.cfg with scripting | Firmware boot variables |
| Encrypted /boot | Not supported | Supported for LUKS | Not supported |
| Interactive menu | Simple list | Full menu and shell | Firmware menu only |
| Code size and audit effort | Small | Large | Minimal |
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.
| Situation | Recommended choice | Reason |
|---|---|---|
| Modern UEFI desktop, single Linux | systemd-boot | Short configuration and fast menu |
| Fleet using signed UKIs | systemd-boot | Native UKI discovery and boot counting |
| Legacy BIOS hardware | GRUB | systemd-boot cannot run without UEFI |
| Kernels on ext4 or Btrfs only | GRUB or EFI drivers | Firmware cannot read those filesystems |
| LUKS-encrypted /boot | GRUB | systemd-boot cannot unlock volumes |
- 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/shto the command line, so seteditor noon 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.