Skip to content

fixed empty uefistub detection

Kristian Klausen requested to merge github/fork/RichardKraus/master into master

Created by: RichardKraus

In the current state if the uefistub arg is empty and the loop fails to find a stub it will still continue execution as the check for an empty uefistub is done in the elif.

This leads to nondescript error messages like:

objcopy: '': No such file
objcopy: --change-section-vma .splash=0x0000000000040000 never used
objcopy: --change-section-vma .initrd=0x0000000003000000 never used
objcopy: --change-section-vma .linux=0x0000000002000000 never used
objcopy: --change-section-vma .cmdline=0x0000000000030000 never used
objcopy: --change-section-vma .osrel=0x0000000000020000 never used
==> ERROR: UEFI executable generation FAILED

on systems where systemd-stub is not installed

Merge request reports