til/Applications/System/systemd-boot.md

57 lines
964 B
Markdown
Raw Permalink 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
```
2022-01-27 14:52:23 +00:00
Automatic update:
```sh
systemctl enable systemd-boot-update.service
```
Manual update:
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-11-04 18:17:21 +00:00
# Intel
2021-04-22 03:17:53 +00:00
initrd /intel-ucode.img
2020-03-13 05:43:53 +00:00
2021-11-04 18:17:21 +00:00
# AMD
2021-04-22 03:17:53 +00:00
initrd /amd-ucode.img
initrd /initramfs-linux.img
2021-11-04 18:17:21 +00:00
# Kernel parameters
#
# Acer Nitro AN515-45
# https://wiki.archlinux.org/title/backlight#Kernel_command-line_options
# acpi_backlight=vendor
#
# NVIDIA
# https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting
# nvidia-drm.modeset=1
2021-04-22 03:17:53 +00:00
options root="LABEL=ROOT" rw
2020-10-29 17:52:16 +00:00
```