systemd-boot (sd-boot / gummiboot)¶
- Arch linux doc
- Distro with systemd-boot by default
- Arch wiki: dm-crypt - encrypt hook - Using systemd-cryptsetup-generator
Install package¶
Debian/Ubuntu:
Usage¶
Install systemd-boot to disk:
Change default boot entry¶
Edit /efi/loader/loader.conf
Automated kernel image management and boot loader entries¶
kernel-install-for-dracut¶
Kernelstub¶
Kernelstub is a utility to automatically manage your OS's EFI System Partition (ESP). It makes it simple to copy the current kernel and initramfs image onto the ESP so that they are automatically probable by most EFI boot loaders as well as the EFI firmware itself.
- Github
- What is Kernelstub
- Developed by System76, packaged in Pop-Os deb repo
- Not packaged in Arch, neither in AUR
- Sample template:
/etc/default/kernelstub.SAMPLE
Copy current kernel and inintd to EFI partition:
Install older kernel as default¶
kernelstub -v -k /boot/vmlinuz-5.19.16-76051916-generic -i /boot/initrd.img-5.19.16-76051916-generic
Then copy the older kernel to i.e. *-previous:
Then override the default kernel + initrd entries:
Dracut¶
see ./dracut.md
EFI shell¶
bootvine¶
A boot animation showing stages of systemd as a tree