Re: mkinitcpio fail to generate an UEFI executable
Reply #2 –
I am currently facing the exact same issue.
I have confirmed that in fact $uefistub does not get set as none of the paths {/usr,}/lib/{systemd/boot/efi,gummiboot}/linux{x64,ia32}.efi.stub apply.
This causes objcopy to fail as it is later called via:
objcopy \
--add-section .osrel="$osrelease" --change-section-vma .osrel=0x20000 \
--add-section .cmdline=<(grep '^[^#]' "$cmdline" | tr -s '\n' ' ') --change-section-vma .cmdline=0x30000 \
--add-section .linux="$kernelimg" --change-section-vma .linux=0x2000000 \
--add-section .initrd=<(cat ${microcode[@]} "$initramfs") --change-section-vma .initrd=0x3000000 \
${OBJCOPYARGS[@]} "$uefistub" "$out"
with "$uefistub" still being ''
Installing efistub-standalone should take care of the missing file.
I did not try to boot it yet but at least mkinitcpio did not complain anymore.