Skip to content

systemd-boot

|

Systemd-boot is a simple UEFI boot manager. It is very easy to configure and use and configured through single configuration file.

Configuring systemd-boot

Before we start configuring systemd-boot, we need to run the fallowing command:

Terminal window
bootctl install

This will create the necessary structure with the efi binary needed to boot the system.

We can now create the main configuration file for systemd-boot.

/boot/loader/loader.conf
default arch.conf
timeout 1
console-mode max
editor no

If you are using UKIs you don’t need further configuration, systemd-boot will automatically detect them. Otherwise we need to create the entry files for the kernels. Below you can find couple of example entries.

/boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root="LABEL=Arch OS" rootflags=subvol=@ rw nvidia-drm.modeset=1 quiet splash resume=UUID="8c2aebb8-7ec0-4602-bdb3-e4bcc8c22e19" resume_offset=533760

Final file structure should look like this:

  • Directory/boot
    • DirectoryEFI/
    • initramfs-linux-fallback.img
    • initramfs-linux.img
    • initramfs-linux-lts-fallback.img
    • initramfs-linux-lts.img
    • Directoryloader
      • Directoryentries
        • arch.conf
        • arch-fallback.conf
        • arch-lts.conf
        • arch-lts-fallback.conf
      • entries.srel
      • loader.conf
      • random-seed
    • Directorysyslinux/
    • vmlinuz-linux
    • vmlinuz-linux-lts