Add refind configuration
This commit is contained in:
parent
20571f1f39
commit
ee33797b47
@ -366,12 +366,41 @@ refind-install
|
|||||||
|
|
||||||
**Manual editing of the generated configuration file is necessary when installing rEFInd from the Arch boot ISO**
|
**Manual editing of the generated configuration file is necessary when installing rEFInd from the Arch boot ISO**
|
||||||
|
|
||||||
_TODO insert config here_
|
#### Autodetection
|
||||||
|
|
||||||
|
`/boot/refind_linux.conf`
|
||||||
```
|
```
|
||||||
"Boot with standard options" "rw loglevel=3 quiet cryptdevice=LABEL=(label):(name) root=/dev/mapper/(name) rootflags=subvol=@"
|
"Boot with standard options" "rw loglevel=3 quiet cryptdevice=LABEL=(label):(name) root=/dev/mapper/(name) rootflags=subvol=@"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Manual boot stanza
|
||||||
|
|
||||||
|
Assuming you use a `/boot` partition containing the `EFI` directory and linux kernels.
|
||||||
|
`refind-nord-theme` is required for the icon configured below. Install it from the AUR or change the icon to `/EFI/refind/icons/os_arch.png`.
|
||||||
|
|
||||||
|
`/boot/EFI/refind/refind.conf`
|
||||||
|
```
|
||||||
|
menuentry "Arch Linux" {
|
||||||
|
icon /EFI/refind/themes/nord/icons/os_arch.png
|
||||||
|
loader /vmlinuz-linux
|
||||||
|
initrd /initramfs-linux.img
|
||||||
|
options "rw loglevel=3 quiet cryptdevice=LABEL=(label):(name) root=/dev/mapper/(name) rootflags=subvol=@"
|
||||||
|
submenuentry "Boot using fallback initramfs" {
|
||||||
|
initrd /initramfs-linux-fallback.img
|
||||||
|
}
|
||||||
|
submenuentry "Boot to terminal" {
|
||||||
|
add_options "systemd.unit=multi-user.target"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Edit `/boot/EFI/refind/themes/nord/theme.conf` to show keyboard options by removing `hints` from `hideui`
|
||||||
|
```
|
||||||
|
...
|
||||||
|
hideui singleuser,badges
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
### GRUB
|
### GRUB
|
||||||
|
|
||||||
[shroot]
|
[shroot]
|
||||||
@ -513,10 +542,27 @@ pacman -S snap-pac
|
|||||||
|
|
||||||
## (rEFInd) Show snapshots in bootmenu
|
## (rEFInd) Show snapshots in bootmenu
|
||||||
|
|
||||||
_WIP_
|
This requires a manual boot entry definition in `/boot/EFI/refind/refind.conf` as shown in [Manual boot stanza](#manual-boot-stanza)
|
||||||
|
|
||||||
`paru -S refind-btrfs`
|
`paru -S refind-btrfs`
|
||||||
|
|
||||||
|
In `/etc/refind-btrfs.conf`, embed the btrfs logo.
|
||||||
|
```
|
||||||
|
...
|
||||||
|
[boot-stanza-generation.icon]
|
||||||
|
mode = "embed_btrfs_logo"
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
Use the inverted logo for darker themes such as Nord.
|
||||||
|
```
|
||||||
|
...
|
||||||
|
[boot-stanza-generation.icon.btrfs-logo]
|
||||||
|
variant = "inverted"
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
`systemctl enable --now refind-btrfs.service`
|
`systemctl enable --now refind-btrfs.service`
|
||||||
|
|
||||||
TODO config
|
**NOTE:** this doesn't work yet, as the UUID naming scheme is not supported by refind-btrfs.
|
||||||
|
See [issue 46](https://github.com/Venom1991/refind-btrfs/issues/46) for details.
|
||||||
|
Loading…
Reference in New Issue
Block a user