Commit cf7dac56 authored by Chrysostomus's avatar Chrysostomus

Fix refind installation for filesystems other than btrfs

parent d4125f65
......@@ -513,7 +513,7 @@ install_refind()
sed -i '/Boot with minimal options/d' /mnt/boot/refind_linux.conf
fi
# Figure out microcode
rootsubvol=$(findmnt -o TARGET,SOURCE | awk '/\/mnt / {print $2}' | cut -d "[" -f2 | cut -d "]" -f1)
rootsubvol=$(findmnt -o TARGET,SOURCE | awk '/\/mnt / {print $2}' | grep -o "\[.*\]" | cut -d "[" -f2 | cut -d "]" -f1 | sed 's/^\///')
UCODE=$(arch_chroot "pacman -Qqs ucode" 2>$ERR)
if [[ $(echo ${UCODE} | wc -l) -gt 1 ]]; then
# set microcode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment