Systemd-boot: Difference between revisions
From wikinotes
(→Setup) |
(→Setup) |
||
Line 60: | Line 60: | ||
<source lang="bash"> | <source lang="bash"> | ||
# Find partition's PARTUUID | # Find the linux-install partition's PARTUUID | ||
blkid | blkid | ||
ls -l /dev/disk/by-partuuid | ls -l /dev/disk/by-partuuid |
Latest revision as of 19:01, 11 June 2023
systemd-boot is the simplest way to quickly get your linux booting with EFI, and it is now built-in to systemd.
Documentation
http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/ Official Documentation
Setup
# Confirm you booted using EFI efivar -lCreate EFI partition
sudo fdisk /dev/sda g # create gpt table n # create 2M EFI partition t # change partition type 4 # partitiontype -4 n # create your install partitionMount partition
# (from the arch usb) mount /dev/sda2 /mnt # mount your root filesystem mount /dev/sda1 /mnt/boot # mount your EFI partition to /boot arch-chroot /mnt # chroot into filesystem pacman -S efivars efibootmgr dosfstools # install dependencies pacman -S linux linux-headers # install linux (creates /boot/vmlinux-linux, ...) bootctl --path=/boot install # install bootloaderConfigure Bootloader
# /boot/loader/loader.conf # gummiboot loader configuration default archlinux timeout 5# Find the linux-install partition's PARTUUID blkid ls -l /dev/disk/by-partuuidAdd your root filesystem (not EFI partition)
# /boot/loader/entries/archlinux.conf title Arch Linux linux /vmlinuz-linux # ..or /vmlinuz-linux-lts initrd /initramfs-linux.img # ..or /initramfs-linux-lts.img options root=PARTUUID=379022b2-7726-4029-ad80-d55037884ab8 rw