dissect-image: validate extension-release even if the host has only ID in os-release
authorLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 19 Jan 2022 00:01:48 +0000 (00:01 +0000)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 19 Jan 2022 00:01:48 +0000 (00:01 +0000)
commit37361f46d571ad0b71ef99dec6a9b76edbab38bb
treeaa69b0ec493bf8cf43bff71110ac5576e3a483de
parent095162d72104d523039f5a1417fa487fb05dea7a
dissect-image: validate extension-release even if the host has only ID in os-release

A rolling distro won't set VERSION_ID or SYSEXT_LEVEL in os-release,
which means we skip validation of ExtensionImages.
Validate even with just an ID, the lower level helper already
recognizes and accepts this use case.

Fixes https://github.com/systemd/systemd/issues/22146
src/shared/dissect-image.c