Refind: Difference between revisions

From wikinotes
 
(7 intermediate revisions by the same user not shown)
Line 26: Line 26:
</blockquote><!-- Locations -->
</blockquote><!-- Locations -->


= Install =
= Notes =
<blockquote>
<blockquote>
<syntaxhighlight lang="bash">
{| class="wikitable"
pacman -S refind
|-
</syntaxhighlight>
| [[refind install]]
</blockquote><!-- Install -->
|-
| [[refind setup]]
|-
| [[refind configuration]]
|-
|}
</blockquote><!-- Notes -->


= Setup =
= Refind Extensions =
<blockquote>
<blockquote>
<syntaxhighlight lang="bash">
{| class="wikitable"
refind-install  # replaces systemd-boot, automatically finds EFI stubs
|-
</syntaxhighlight>
| [[refind ext: reboot to os]]
 
|-
You'll need to re-run refind-install on refind updates.<br>
|}
This will do it automatically.
</blockquote><!-- Refind Extensions -->
<syntaxhighlight lang="bash">
# /etc/pacman.d/hooks/refind.hook
[Trigger]
Operation=Upgrade
Type=Package
Target=refind
 
[Action]
Description = Updating rEFInd on ESP
When=PostTransaction
Exec=/usr/bin/refind-install
</syntaxhighlight>
</blockquote><!-- Setup -->
 
= Configuration =
<blockquote>
== Common Settings ==
<blockquote>
<syntaxhighlight lang="bash">
# /boot/EFI/refind/refind.conf
timeout 5      # boot after 3s unless a key is pressed
resolution max  # use max possible resolution
</syntaxhighlight>
</blockquote><!-- Common Settings -->
 
== Kernel Options ==
<blockquote>
First, generate a <code>/boot/refind_linux.conf</code> if it doesn't exist (it applies to all kernels in the same directory).
<syntaxhighlight lang="bash">
test -f /boot/refind_linux.conf || mkrlconf
</syntaxhighlight>
 
Next, adjust the boot options you'd like within the subsection you'd like
<syntaxhighlight lang="bash">
# /boot/refind_linux.conf
 
"Boot with standard options"  "root=PARTUUID=${SOME_PARTUUID} rw rdblacklist=nouveau nomodeset systemd.unified_cgroup_hierarchy=0 ${YOUR_KERNEL_PARAMS}"
"Boot to single-user mode"    "root=PARTUUID=${SOME_PARTUUID} rw rdblacklist=nouveau nomodeset single ${YOUR_KERNEL_PARAMS}"
"Boot with minimal options"  "ro root=UUID=${SOME_PARTUUID} ${YOUR_KERNEL_PARAMS}"
</syntaxhighlight>
</blockquote><!-- Kernel Options -->
 
== Themes ==
<blockquote>
<syntaxhighlight lang="bash">
# some nice themes
aura -A refind-theme-darkmini-git  # https://github.com/LightAir/darkmini
aura -A refind-theme-nord          # https://github.com/jaltuna/refind-theme-nord
aura -A refind-theme-regular-git    # https://github.com/bobafetthotmail/refind-theme-regular
</syntaxhighlight>
 
<syntaxhighlight lang="dosini">
# /boot/EFI/refind/refind.conf
 
# ...at end of file...
 
include themes/darkmini/theme.conf
banner themes/darkmini/bg/background.png
</syntaxhighlight>
</blockquote><!-- Themes -->
</blockquote><!-- Configuration -->

Latest revision as of 17:00, 12 May 2024

An opensource boot manager.

Documentation

repo https://sourceforge.net/p/refind/code/ci/master/tree/
official docs http://www.rodsbooks.com/refind/
official docs: configuration http://www.rodsbooks.com/refind/configfile.html
official docs: usage http://www.rodsbooks.com/refind/using.html

Locations

/boot/EFI/refind/refind.conf config
/boot/EFI/refind/themes/${theme}/* theme files

Notes

refind install
refind setup
refind configuration

Refind Extensions

refind ext: reboot to os