The microcode is not getting set up in refind_linux.conf
Currently the code responsible for microcode (and consequently initramfs) always assumes that exactly one .*ucode.*
package is installed and thus fails.
UCODE=$(arch_chroot "pacman -Qqs ucode" 2>$ERR)
if [[ $(echo ${UCODE} | wc -l) -gt 1 ]]; then
# set microcode
This is due to the way it counts installed packages. The UCODE
variable contains the newlines outputted by pacman
but then gets expanded into echo
parameters, which in turn are concatenated using spaces. The solution would be to either pass UCODE
as one parameter or to count individual words instead.
For example:
UCODE=$(arch_chroot "pacman -Qqs ucode" 2>$ERR)
if [[ $(echo "${UCODE}" | wc -l) -gt 1 ]]; then
# set microcode
I could probably fix that but I would need a bit of guidance. I don't have much experience with git and I have never used GitLab-like platforms (aside from browsing).