Script was failing on two parts. The microcode_detector was being ran after $microcode var was needed so the majority of packages being installed during the initial pacstrap were not getting installed. This included grub and caused later grub changes to fail (as seen in screenshot. I was also getting errors regarding /mnt/etc/sudoers.d/wheel not existing. This was resolved by installing the sudo package prior.
Script was failing on two parts. The microcode_detector was being ran after $microcode var was needed so the majority of packages being installed during the initial pacstrap were not getting installed. This included grub and caused later grub changes to fail (as seen in screenshot. I was also getting errors regarding /mnt/etc/sudoers.d/wheel not existing. This was resolved by installing the sudo package prior.