til/Applications/System/systemd-boot.md

67 lines
1.0 KiB
Markdown
Raw Normal View History

2020-04-30 16:32:50 +00:00
# systemd-boot
2020-03-13 05:43:53 +00:00
Read [systemd-boot](https://wiki.archlinux.org/index.php/Systemd-boot).
2020-10-07 08:40:52 +00:00
Install using XBOOTLDR:
2020-03-13 05:43:53 +00:00
```sh
2020-10-07 08:40:52 +00:00
bootctl --esp-path=/efi --boot-path=/boot install
2020-03-13 05:43:53 +00:00
```
Update:
```sh
bootctl update
```
2020-10-22 08:11:07 +00:00
Label partition:
```sh
e2label /dev/xxxY ROOT
```
View partitions:
```sh
blkid
```
2020-10-07 08:40:52 +00:00
Edit `/efi/loader/loader.conf`:
2020-03-13 05:43:53 +00:00
```txt
default archlinux.conf
timeout 4
editor no
2020-10-22 08:11:07 +00:00
console-mode max
2020-03-13 05:43:53 +00:00
```
Edit `/boot/loader/entries/archlinux.conf`:
```txt
2020-05-24 10:44:40 +00:00
title Arch Linux
2020-03-13 05:43:53 +00:00
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root="LABEL=ROOT" rw
```
2020-10-22 08:11:07 +00:00
Edit `/boot/loader/entries/archlinux-lts.conf`:
2020-03-13 05:43:53 +00:00
2020-10-22 08:11:07 +00:00
```txt
title Arch Linux LTS
linux /vmlinuz-linux-lts
initrd /intel-ucode.img
initrd /initramfs-linux-lts.img
options root="LABEL=ROOT" rw
2020-03-13 05:43:53 +00:00
```
2020-10-22 08:11:07 +00:00
Edit `/boot/loader/entries/archlinux-zen.conf`:
2020-03-13 05:43:53 +00:00
2020-10-22 08:11:07 +00:00
```txt
title Arch Linux ZEN
linux /vmlinuz-linux-zen
initrd /intel-ucode.img
2020-10-29 17:52:16 +00:00
initrd /initramfs-linux-zen.img
options root="LABEL=ROOT" rw
```