summaryrefslogtreecommitdiffstats
path: root/src/core/namespace.c
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-01-28 14:25:41 +0100
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-02-16 15:33:23 +0100
commitb850a9b29f2bc14836415f0c85d42e7d4990285d (patch)
tree8dccc980c4a650d07c4f43fb0e61eeb7a7132ab4 /src/core/namespace.c
parentresolved: log process info of clients requesting resolution via D-Bus (diff)
downloadsystemd-b850a9b29f2bc14836415f0c85d42e7d4990285d.tar.xz
systemd-b850a9b29f2bc14836415f0c85d42e7d4990285d.zip
MountImages: actually support optional paths
ENOENT did not cause an image mount to be skipped, fix it
Diffstat (limited to 'src/core/namespace.c')
-rw-r--r--src/core/namespace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c
index 4ed0991b56..d98a53a39a 100644
--- a/src/core/namespace.c
+++ b/src/core/namespace.c
@@ -984,6 +984,8 @@ static int mount_images(const MountEntry *m) {
assert(m);
r = verity_dissect_and_mount(mount_entry_source(m), mount_entry_path(m), m->image_options);
+ if (r == -ENOENT && m->ignore)
+ return 0;
if (r < 0)
return log_debug_errno(r, "Failed to mount image %s on %s: %m", mount_entry_source(m), mount_entry_path(m));