From 080203639b2d425e0ffce16458d6775407afa713 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 11 Apr 2024 13:35:20 +0200 Subject: [PATCH] sysext: Fix ephemeral-import mode for unused hierarchies --- src/sysext/sysext.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c index 87f55aca27..b8753083bf 100644 --- a/src/sysext/sysext.c +++ b/src/sysext/sysext.c @@ -961,7 +961,11 @@ static int maybe_import_ignored_mutable_directory(OverlayFSPaths *op) { return log_oom(); r = chase(path, arg_root, CHASE_PREFIX_ROOT, &resolved_path, NULL); - if (r < 0 && r != -ENOENT) + if (r == -ENOENT) { + log_debug("Mutable directory for %s does not exist, not importing", op->hierarchy); + return 0; + } + if (r < 0) return log_error_errno(r, "Failed to resolve mutable directory '%s': %m", path); r = resolved_paths_equal(op->resolved_hierarchy, resolved_path);