Skip to content

Instantly share code, notes, and snippets.

@marcan
Last active August 21, 2022 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcan/eac6bf00d5edc37d6ccbeffda382d30c to your computer and use it in GitHub Desktop.
Save marcan/eac6bf00d5edc37d6ccbeffda382d30c to your computer and use it in GitHub Desktop.
Using systemd-boot with asahi

This is all preliminary and for experimentation only. You're on your own.

Make sure you're on asahi-dev and have your packages updated.

umount /boot/efi
mv /boot /boot.old
sed -i 's,/boot/efi,/boot,g' /etc/fstab
systemctl daemon-reload
mount /boot

pacman -S linux-asahi

bootctl --no-variables install

root="$(grep ' / ' /etc/fstab | cut -d" " -f1)"

cat >/boot/loader/loader.conf <<EOF
default  asahi.conf
timeout  3
console-mode keep
editor   yes
auto-firmware no
EOF

cat >/boot/loader/entries/asahi.conf <<EOF
title   Asahi Linux
linux   /vmlinuz-linux-asahi
initrd  /initramfs-linux-asahi.img
options root=$root rw loglevel=3 quiet
EOF

cat >/boot/loader/entries/asahi-fallback.conf <<EOF
title   Asahi Linux (fallback initramfs)
linux   /vmlinuz-linux-asahi
initrd  /initramfs-linux-asahi-fallback.img
options root=$root rw loglevel=3 quiet
EOF
reboot
@WhyNotHugo
Copy link

Typo in auto-firmare no.

@jannau
Copy link

jannau commented Aug 21, 2022

missing mkdir /boot/

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