Systemd-boot

From wikinotes
(Redirected from Gummiboot)

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 -l

Create 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 partition

Mount 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 bootloader

Configure 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-partuuid

Add 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