systemd-boot
Need:
- EFI based systemd
- systemd ( bootctl )
- mounted EFI System Partition
sudo bootctl install # install bootloader
bootctl status # verify
- Installs to EFI partition ( /boot/efi )
- Creates dir for configs: /boot/loader
Configure:
sudo nano /boot/loader/loader.conf
default arch.conf # Change this to your OS entry file
timeout 3
console-mode max
editor yes
Get UUID for root disk ( use in config below ):
blkid | grep root
Configure:
sudo nano /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=UUID=xxxxyour-root-partition-uuidxxxx rw quiet splash
Update anytime the kernel updates
sudo bootctl update
EFI entries:
efibootmgr # check EFI vars boot etries
sudo efibootmgr --bootorder XXXX,YYYY # set systemd-boot as default ( XXXX is the id for systemd-boot )
Portable Boot on Any UEFI System ( ex. USB Drive )
sudo mkdir -p /mnt/efi
sudo mount /dev/sdX1 /mnt/efi
sudo bootctl --esp-path=/mnt/efi install
sudo mkdir -p /mnt/efi/EFI/BOOT
sudo cp /mnt/efi/EFI/systemd/systemd-bootx64.efi /mnt/efi/EFI/BOOT/BOOTX64.EFI
Editor Mode
At boot menu:
- select boot entry ( don’t press enter )
- press ‘e’
- Add / remove / modify parameters
- ctrl - x or F10 to boot
- esc to cancel changes