]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Try to load UKI from simple filesystem before LoadImage
authorValentin David <me@valentindavid.com>
Sat, 18 Apr 2026 13:09:00 +0000 (15:09 +0200)
committerLennart Poettering <lennart@amutable.com>
Mon, 4 May 2026 08:03:46 +0000 (10:03 +0200)
commit5580db885c08b45bec5f665cbb0b114fa2538736
tree4f8de001efbcc510a1e92c34873dcb29b5c6aa21
parent1c764b1589577fa40182e48e19d81e4a51ae45e3
boot: Try to load UKI from simple filesystem before LoadImage

When the source buffer is NULL, the firmware is supposed to try to load the UKI
with simple filesystem protocol then load file 2 protocol. But it seems
on some versions of AMI, it does not use simple filesystem protocol,
and then fails to load if the ESP was loaded from an El Torito boot
catalog. Trying to load the source buffer from the simple filesystem protocol
protocols seems work around this limitation.

Shim for example, also loads the source buffer before calling LoadImage. So it
seems to be a safe thing to do. We could also maybe in the future use load file
2 protocol if simple filesystem failed in the first place.
src/boot/shim.c
src/boot/util.c
src/boot/util.h