allow ExtensionImages= and ExtensionDirectories= settings to support confext images

This commit is contained in:
Maanya Goenka
2023-08-15 18:34:46 +00:00
parent 0da675fddd
commit 55ea4ef096
2 changed files with 56 additions and 12 deletions
+3
View File
@@ -136,6 +136,9 @@ int parse_env_extension_hierarchies(char ***ret_hierarchies, const char *hierarc
else if (streq(hierarchy_env, "SYSTEMD_SYSEXT_HIERARCHIES"))
/* Default for sysext when unset */
l = strv_new("/usr", "/opt");
else if (streq(hierarchy_env, "SYSTEMD_SYSEXT_AND_CONFEXT_HIERARCHIES"))
/* Combined sysext and confext directories */
l = strv_new("/usr", "/opt", "/etc");
else
return -ENXIO;
} else if (r < 0)