# Bootloader

You have different choices like systemd-boot or grub to handle dual boot.
rEFIndis my choice because of easy customization:

pacman -S refind-efi


# rEFInd

REFInd will automatically find your EFI System Partition (ESP) with installation script. You can use refind-install script with --root flag to help install it from a "live CD" or other emergency system, notice that your /boot partition should be mounted.


It's a common practice to use man utility to learn more about the particular program. So if you need more options like --alldrivers, feel free to check it with man.

man refind-install

Run the script:


# Kernel options

You should place your refind_linux.conf file in the same directory as your kernel.
And the basic config to run the system could look like this:

## This file should be present in the same directory as the EFISTUB kernel and initramfs files
## More info at http://www.rodsbooks.com/refind/linux.html , http://www.rodsbooks.com/efi-bootloaders/efistub.html

"Boot with defaults"    	"root=PARTUUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX rootfstype=ext4 rw add_efi_memmap initrd=/intel-ucode.img initrd=/initramfs-linux.img"


Notice that you can put custom kernel options here, e.g.: I'm using acpi_osi=! acpi_osi="Windows 2009" acpi_backlight=native for my Zenbook Pro UX501VM because of known Nvidia issue.
And nmi_watchdog=0 to disable watchdog for the energy savings.

There are several ways to findout your PARTUUID, one of them is:

blkid -s PARTUUID -o value /dev/sdxY #Where 'x' is the disk letter and 'Y' is the partition number.

Also, to set the default boot OS based on the loader's title, which appears in the main menu beneath the icons when you select the loader by uncommenting or adding:

default_selection "+,vmlinuz"


For novice linux users it's better to learn more about kernel and re-check how to pass parameters in rEFInd.

# rEFInd customization

As you saw on the picture, you have ability to use themes in rEFInd. I can recommend refind-minimal as a minimalistic and beautiful theme. You will setup git in the next steps.

  • Create a folder called themes in the same directory with refind.conf:
mkdir themes
cd themes
  • Clone theme repository:
git clone https://github.com/EVanPurkhiser/rEFInd-minimal.git
  • To enable the theme add this in the end of refind.conf:
include themes/rEFInd-minimal/theme.conf

# Reboot

Exit the chroot environment, reboot the system and go to the next step:

umount -R /mnt