install_uefistub.sh: only install uefi-stub if it is one

This commit is contained in:
layman 2019-03-07 10:12:09 +01:00
parent fa07b039a3
commit df3572d905

View file

@ -85,8 +85,13 @@ if [ "$(basename $img)" = "vmlinux" ] ; then
else
img_dest=vmlinuz
fi
updatever $img_dest "$img"
updateefi $img_dest "$img"
if strings "$2" | grep -qi "EFI stub" ; then
updateefi $img_dest "$img"
else
updatever $img_dest "$img"
fi
updatever System.map "$map"
config=$(dirname "$map")