summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authormaanyagoenka <maanyagoenka@microsoft.com>2023-03-29 20:34:21 +0000
committermaanyagoenka <maanyagoenka@microsoft.com>2023-04-05 21:50:04 +0000
commit30dfe035eb8a6539f5997a798402d2d5225f8567 (patch)
tree65ea6bf109a3b66a316ef161df70b569629edcd9 /src/portable
parentb60e0f577740af89516f7c74967d7182637f27af (diff)
downloadsystemd-30dfe035eb8a6539f5997a798402d2d5225f8567.tar.gz
extension-release: establish compatibility between host file and extension-release file
The release file that accompanies the confext images needs to be host compatible to be able to be merged into the host /etc/ directory. This commit checks for version compatibility between the image file and the host file.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index 1878157e65..f3fc06f6fd 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -607,7 +607,7 @@ static int extract_image_and_extensions(
return r;
if (validate_sysext) {
- r = extension_release_validate(ext->path, id, version_id, sysext_level, "portable", extension_release);
+ r = extension_release_validate(ext->path, id, version_id, sysext_level, "portable", extension_release, IMAGE_SYSEXT);
if (r == 0)
return sd_bus_error_set_errnof(error, SYNTHETIC_ERRNO(ESTALE), "Image %s extension-release metadata does not match the root's", ext->path);
if (r < 0)