Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klingtnet/0cf7e0dd6423ea72551ca61ae4c5c956 to your computer and use it in GitHub Desktop.
Save klingtnet/0cf7e0dd6423ea72551ca61ae4c5c956 to your computer and use it in GitHub Desktop.
How to switch from GRUB2 to systemd-boot for LVM/LUKS systems

How to switch from GRUB2 to systemd-boot (Arch Linux)

$ sudo su
$ bootctl install
$ cat <<EOF>/boot/loader/loader.conf
#https://wiki.archlinux.org/index.php/Systemd-boot#Configuration

# menu timeout
timeout 3
# defaut kernel to boot
default arch
# activate boot entry editor (press `e` in menu)
editor 1
EOF
$ cat <<EOF>/boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=UUID=<uuid-of-root-partition> rd.luks.uuid=<uuid-of-luks-partition>
EOF
$ pacman -Rcsnu grub
$ <aur-wrapper> -S systemd-boot-pacman-hook

Configuration of systemd-boot is sooo much nicer than those of GRUB.

Double check your Kernel params (you can copy them 1-to-1 from /etc/default/grub) and reboot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment