]> git.ipfire.org Git - thirdparty/systemd.git/commit
ukify: if the specified kernel is not a valid PE file try to decompress it
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 13 Feb 2025 19:44:12 +0000 (19:44 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 14 Feb 2025 10:57:03 +0000 (10:57 +0000)
commit0dd03215f1e402092f6c6da213708045e445a9ed
tree7712cd3ffbc0d9f9385470f01900cae987c53478
parenta6d51ae582c863c01c581f1e31492910d53b0427
ukify: if the specified kernel is not a valid PE file try to decompress it

On some distros on some architectures (e.g.: Ubuntu arm64) the kernel is shipped as
a gzipped file, which the UEFI firmware does not understand.
If pefile fails to parse it, try to decompress it.
src/ukify/ukify.py