summaryrefslogtreecommitdiff
path: root/src/sysext
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/sysext
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/sysext')
-rw-r--r--src/sysext/sysext.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c
index e7d8e801fc..97cf8ba52e 100644
--- a/src/sysext/sysext.c
+++ b/src/sysext/sysext.c
@@ -574,7 +574,8 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
host_os_release_version_id,
host_os_release_sysext_level,
in_initrd() ? "initrd" : "system",
- img->extension_release);
+ img->extension_release,
+ IMAGE_SYSEXT);
if (r < 0)
return r;
if (r == 0) {
@@ -996,7 +997,7 @@ static int run(int argc, char *argv[]) {
/* For debugging purposes it might make sense to do this for other hierarchies than /usr/ and
* /opt/, but let's make that a hacker/debugging feature, i.e. env var instead of cmdline
* switch. */
- r = parse_env_extension_hierarchies(&arg_hierarchies);
+ r = parse_env_extension_hierarchies(&arg_hierarchies, "SYSTEMD_SYSEXT_HIERARCHIES");
if (r < 0)
return log_error_errno(r, "Failed to parse $SYSTEMD_SYSEXT_HIERARCHIES environment variable: %m");