til/Applications/System/systemd-boot.md

49 lines
734 B
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-05-24 10:44:40 +00:00
Assume you use Arch Linux, and [EFI system partition](https://wiki.archlinux.org/index.php/EFI_system_partition) mount point is `/boot`.
2020-03-13 05:43:53 +00:00
Install:
```sh
bootctl --path=/boot install
```
Update:
```sh
bootctl update
```
Edit `/boot/loader/loader.conf`:
```txt
default archlinux.conf
timeout 4
console-mode max
editor no
```
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-05-23 09:05:26 +00:00
Label partition:
2020-03-13 05:43:53 +00:00
```sh
2020-05-24 10:47:59 +00:00
e2label /dev/xxxY ROOT
2020-03-13 05:43:53 +00:00
```
View partitions:
```sh
blkid
```