How to install rEFInd and customize it with a nice theme

2020-05-02

tags: linux, boot, efi

rEFInd is a UEFI boot manager capable of launching EFISTUB kernels. It is a fork of the no-longer-maintained rEFIt and fixes many issues with respect to non-Mac UEFI booting. It is designed to be platform-neutral and to simplify booting multiple OSes.

Installation

Install rEFInd.

# refind-install

Clone a git repository containing a nice theme to customize it.

$ git clone https://github.com/bobafetthotmail/refind-theme-regular

Run the install.sh script inside the cloned repository as root.

# sh install.sh

Manual Customization (OPTIONAL)

This optional way of installing the custom theme can help you understand what's going on behind the scenes and make it cleaner.

# cp -r refind-theme-regular /boot/efi/EFI/refind

Remove innecesary directories.

# rm -rf /boot/efi/EFI/refind/refind-theme-regular/src

# rm -rf /boot/efi/EFI/refind/refind-theme-regular/.git

Add a little line of text in refind.conf so rEFInd knows where to look for the themes.

# echo refind-theme-regular/theme.conf >> /boot/efi/EFI/refind/refind.conf

If you want dark theme instead of white default theme edit theme.conf

# sed -i "s/banner.*bg.png/banner refind-theme-regular\/icons\/128-48\/bg_dark.png/" /boot/efi/EFI/refind/refind-theme-regular/theme.conf

# sed -i "s/selection_big.*selection-big.png/selection-big refind-theme-regular\/icons\/128-48\/selection_dark-big.png/" /boot/efi/EFI/refind/refind-theme-regular/theme.conf

# sed -i "s/selection_small.*selection-small.png/selection-big refind-theme-regular\/icons\/128-48\/selection_dark-small.png/" /boot/efi/EFI/refind/refind-theme-regular/theme.conf