REFInd: Difference between revisions
imported>Samueldr m Add note about AArch64 |
m Add category booting |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 28: | Line 28: | ||
* <code>/EFI/BOOT/BOOTAA64.EFI</code> on the ESP for <tt>AArch64</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 '<nixpkgs>' --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 39: | 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 51: | 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 70: | 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]] |