summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-11-18 22:00:31 +0100
committerLennart Poettering <lennart@poettering.net>2021-11-23 22:55:11 +0100
commit60c5f7002bfee928fb8799eb35e5cc95da982a48 (patch)
tree914764af8704c787ece225a0f97aa01afefa4c22 /src/portable
parenta4e0d6171318b5f381a1cbdb6de895920d7f15d6 (diff)
downloadsystemd-60c5f7002bfee928fb8799eb35e5cc95da982a48.tar.gz
extension-release.d/: add a new field SYSEXT_SCOPE= for clarifying what a system extension is for
This should make things a bit more robust since it ensures system extension can only applied to the right environments. Right now three different "scopes" are defined: 1. "system" (for regular OS systems, after the initrd transition) 2. "initrd" (for sysext images that apply to the initrd environment) 3. "portable" (for sysext images that apply to portable images) If not specified we imply a default of "system portable", i.e. any image where the field is not specified is implicitly OK for application to OS images and for portable services – but not for initrds.
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 8ccb8f5228..612893b688 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -595,7 +595,7 @@ static int extract_image_and_extensions(
if (r < 0)
return r;
- r = extension_release_validate(ext->path, id, version_id, sysext_level, extension_release);
+ r = extension_release_validate(ext->path, id, version_id, sysext_level, "portable", extension_release);
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)