summaryrefslogtreecommitdiff
path: root/src/sysext
diff options
context:
space:
mode:
authormaanyagoenka <maanyagoenka@microsoft.com>2023-02-24 00:37:52 +0000
committermaanyagoenka <maanyagoenka@microsoft.com>2023-04-05 21:50:04 +0000
commitb60e0f577740af89516f7c74967d7182637f27af (patch)
treea384a6b2ab9435acc7feb1958948995b9238b2e3 /src/sysext
parent7393530f223a48528a045b10575668ed5b0e6a44 (diff)
downloadsystemd-b60e0f577740af89516f7c74967d7182637f27af.tar.gz
os-util: add a new confext image type and the ability to parse their release files
Adds a new image type called IMAGE_CONFEXT which is similar to IMAGE_SYSEXT but works for the /etc/ directory instead of /usr/ and /opt/. This commit also adds the ability to parse the release file that is present with the confext image in /etc/confext-release.d/ directory.
Diffstat (limited to 'src/sysext')
-rw-r--r--src/sysext/sysext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c
index 5632b72f3d..e7d8e801fc 100644
--- a/src/sysext/sysext.c
+++ b/src/sysext/sysext.c
@@ -729,7 +729,7 @@ static int image_discover_and_read_metadata(Hashmap **ret_images) {
if (!images)
return log_oom();
- r = image_discover(IMAGE_EXTENSION, arg_root, images);
+ r = image_discover(IMAGE_SYSEXT, arg_root, images);
if (r < 0)
return log_error_errno(r, "Failed to discover extension images: %m");
@@ -832,7 +832,7 @@ static int verb_list(int argc, char **argv, void *userdata) {
if (!images)
return log_oom();
- r = image_discover(IMAGE_EXTENSION, arg_root, images);
+ r = image_discover(IMAGE_SYSEXT, arg_root, images);
if (r < 0)
return log_error_errno(r, "Failed to discover extension images: %m");