]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysext: Use correct image name for extension release checks
authorKai Lueke <kailuke@microsoft.com>
Thu, 20 Nov 2025 14:43:55 +0000 (23:43 +0900)
committerKai Lüke <kailueke@riseup.net>
Wed, 28 Jan 2026 11:24:57 +0000 (12:24 +0100)
commit2ab3a2b44c582dc4aeb90cb0bc3c19b6b68db5a1
tree66170476c0a87c37cc71b8aa33087ced42ce2448
parent5c6bb289990ba53898cbc62db6e732ecb9dc87ac
sysext: Use correct image name for extension release checks

For the extension release check the image name is needed and was derived
from the backing file of the loop device. However, this can have a
different name when symlinks were resolved. The surprising behavior was
that it worked when the target name started with the extension name and
_ because that's what's supported to chop off version suffixes. However,
we should not have such strict requirements for the target name and also
allow - as version separator and entirely different names/prefixes, the
same way as we also do for directories instead of raw images.

Do not use the image name derived from the backing file of the loop
device but directly the extension name we have at hand.
src/shared/discover-image.c
src/sysext/sysext.c