From cf7dac56e72c804bf8f1f75a07422eebb06811fe Mon Sep 17 00:00:00 2001 From: Chrysostomus Date: Mon, 25 Feb 2019 17:23:28 +0200 Subject: [PATCH] Fix refind installation for filesystems other than btrfs --- lib/util-base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util-base.sh b/lib/util-base.sh index 8544d84..58ee609 100644 --- a/lib/util-base.sh +++ b/lib/util-base.sh @@ -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 -- GitLab