From: Luca Boccassi Date: Wed, 9 Mar 2022 02:02:17 +0000 (+0000) Subject: core: create parent directory for mount point of ExtensionDirectories X-Git-Tag: v251-rc1~178^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ebf0b0bd48eb1ce760fa9ab47bf1b3706f3b29e;p=thirdparty%2Fsystemd.git core: create parent directory for mount point of ExtensionDirectories This is used by ExtensionDirectories too, as they are bind-mounted in the propagate directory to check the extension-release files --- diff --git a/src/core/namespace.c b/src/core/namespace.c index e75e003e71a..e74e6ea778c 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -2384,9 +2384,9 @@ int setup_namespace( if (setup_propagate) (void) mkdir_p(propagate_dir, 0600); - if (n_extension_images > 0) - /* ExtensionImages mountpoint directories will be created while parsing the mounts to create, - * so have the parent ready */ + if (n_extension_images > 0 || !strv_isempty(extension_directories)) + /* ExtensionImages/Directories mountpoint directories will be created while parsing the + * mounts to create, so have the parent ready */ (void) mkdir_p(extension_dir, 0600); /* Remount / as SLAVE so that nothing now mounted in the namespace