boot: Use cleanup handler to unload image
authorJan Janssen <medhefgo@web.de>
Mon, 7 Feb 2022 12:05:56 +0000 (13:05 +0100)
committerLuca Boccassi <bluca@debian.org>
Sat, 21 May 2022 14:11:13 +0000 (15:11 +0100)
commitf386daa05466b532ff7dcd7b79b55566460e362c
treebc7719d6f3f2d370938ca708c1ba4e07cd4f2e3d
parent93a72170bd8a7001abde8c85b65cf0f456c8022e
boot: Use cleanup handler to unload image

This also moves the message about failed image execution into
image_start() as we would otherwise show two error messages if
any of the preparatory steps failed.
src/boot/efi/boot.c
src/boot/efi/drivers.c
src/boot/efi/util.h