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:
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.
default arch.conftimeout 1console-mode maxeditor 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.
title Arch Linuxlinux /vmlinuz-linuxinitrd /initramfs-linux.imgoptions root="LABEL=Arch OS" rootflags=subvol=@ rw nvidia-drm.modeset=1 quiet splash resume=UUID="8c2aebb8-7ec0-4602-bdb3-e4bcc8c22e19" resume_offset=533760
title Arch Linuxlinux /vmlinuz-linuxinitrd /initramfs-linux-fallback.imgoptions root="LABEL=Arch OS" rootflags=subvol=@ rw quiet
title Arch Linuxlinux /vmlinuz-linux-ltsinitrd /initramfs-linux-lts.imgoptions root="LABEL=Arch OS" rootflags=subvol=@ rw quiet
title Arch Linuxlinux /vmlinuz-linux-ltsinitrd /initramfs-linux-lts-fallback.imgoptions root="LABEL=Arch OS" rootflags=subvol=@ rw quiet
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