til/Applications/System/systemd-boot.md

41 lines
681 B
Markdown
Raw Normal View History

2021-04-03 16:51:01 +00:00
# [systemd-boot](https://wiki.archlinux.org/index.php/Systemd-boot)
2020-03-13 05:43:53 +00:00
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 everytime systemd is updated:
2020-03-13 05:43:53 +00:00
```sh
bootctl --esp-path=/efi --boot-path=/boot update
2020-03-13 05:43:53 +00:00
```
[Label partition](https://wiki.archlinux.org/index.php/persistent_block_device_naming#by-label)
2020-10-22 08:11:07 +00:00
2020-10-07 08:40:52 +00:00
Edit `/efi/loader/loader.conf`:
2020-03-13 05:43:53 +00:00
```txt
2021-04-22 03:17:53 +00:00
default archlinux.conf
timeout 4
editor no
console-mode max
2020-03-13 05:43:53 +00:00
```
Edit `/boot/loader/entries/archlinux.conf`:
```txt
2021-04-22 03:17:53 +00:00
title Arch Linux
linux /vmlinuz-linux
2020-03-13 05:43:53 +00:00
2021-02-13 06:45:01 +00:00
# Using Intel
2021-04-22 03:17:53 +00:00
initrd /intel-ucode.img
2020-03-13 05:43:53 +00:00
2021-02-13 06:45:01 +00:00
# Using AMD
2021-04-22 03:17:53 +00:00
initrd /amd-ucode.img
initrd /initramfs-linux.img
options root="LABEL=ROOT" rw
2020-10-29 17:52:16 +00:00
```