REFInd: Difference between revisions
imported>Samueldr m removes leftover = |
m Add category booting |
||
(11 intermediate revisions by 6 users not shown) | |||
Line 23: | Line 23: | ||
rEFInd can be installed either using the derivation built using <tt>nix</tt> or by [https://www.rodsbooks.com/refind/getting.html downloading a pre-built binary]. rEFInd can then be placed at the default bootloader location (or anywhere else and then configured) in the ESP. | rEFInd can be installed either using the derivation built using <tt>nix</tt> or by [https://www.rodsbooks.com/refind/getting.html downloading a pre-built binary]. rEFInd can then be placed at the default bootloader location (or anywhere else and then configured) in the ESP. | ||
The default boot location is | The default boot location is: | ||
* <code>/EFI/BOOT/BOOTX64.EFI</code> on the ESP for <tt>x64_64</tt> | |||
* <code>/EFI/BOOT/BOOTAA64.EFI</code> on the ESP for <tt>AArch64</tt> | |||
=== Text-mode Only === | |||
Assuming the ESP is mounted at <tt>/boot/</tt>, a minimal installation (text-mode) without configuration can be made using nix this way (this will replace your default bootloader): | Assuming the ESP is mounted at <tt>/boot/</tt>, a minimal installation (text-mode) without configuration can be made using nix this way (this will replace your default bootloader): | ||
<syntaxhighlight> | <syntaxhighlight lang=console> | ||
sudo mkdir -p /boot/EFI/boot/ | $ sudo mkdir -p /boot/EFI/boot/ | ||
sudo cp "$(nix-build --no-out-link -A 'refind')/share/refind/refind_x64.efi" /boot/EFI/boot/bootx64.efi | $ sudo cp "$(nix-build '<nixpkgs>' --no-out-link -A 'refind')/share/refind/refind_x64.efi" /boot/EFI/boot/bootx64.efi | ||
</syntaxhighlight> | |||
=== Graphical === | |||
If you have a fairly standard install and would like a full graphical installation with icons and buttons, the below will install refind to its own folder within your ESP: | |||
<syntaxhighlight lang=console> | |||
$ sudo nix-shell -p refind efibootmgr | |||
$ refind-install | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 38: | Line 47: | ||
A minimal hands-off configuration which allows some time to select an option follows: | A minimal hands-off configuration which allows some time to select an option follows: | ||
<syntaxhighlight> | <syntaxhighlight lang=bash> | ||
# Wait 2 seconds. | # Wait 2 seconds. | ||
timeout 2 | timeout 2 | ||
Line 50: | Line 59: | ||
The <tt>drivers_x64</tt> folder can also be copied next to the rEFInd EFI binary to allow it to handle filesystems not handled by your EFI implementations (though this is untested). | The <tt>drivers_x64</tt> folder can also be copied next to the rEFInd EFI binary to allow it to handle filesystems not handled by your EFI implementations (though this is untested). | ||
<syntaxhighlight> | <syntaxhighlight lang="console"> | ||
$ ls -l $(nix-build '<nixpkgs>' --no-out-link -A 'refind')/share/refind/drivers_x64 | |||
total 528 | total 528 | ||
-r--r--r-- 2 root root 89388 Dec 31 1969 btrfs_x64.efi | -r--r--r-- 2 root root 89388 Dec 31 1969 btrfs_x64.efi | ||
Line 69: | Line 78: | ||
* [https://wiki.archlinux.org/index.php/REFInd rEFInd on the ArchWiki] | * [https://wiki.archlinux.org/index.php/REFInd rEFInd on the ArchWiki] | ||
* [https://wiki.gentoo.org/wiki/Refind rEFInd on the Gentoo Wiki] | * [https://wiki.gentoo.org/wiki/Refind rEFInd on the Gentoo Wiki] | ||
[[Category:Booting]] |