X Tutup
Skip to content

Commit b850a9b

Browse files
committed
MountImages: actually support optional paths
ENOENT did not cause an image mount to be skipped, fix it
1 parent 1e69ead commit b850a9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/namespace.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,8 @@ static int mount_images(const MountEntry *m) {
984984
assert(m);
985985

986986
r = verity_dissect_and_mount(mount_entry_source(m), mount_entry_path(m), m->image_options);
987+
if (r == -ENOENT && m->ignore)
988+
return 0;
987989
if (r < 0)
988990
return log_debug_errno(r, "Failed to mount image %s on %s: %m", mount_entry_source(m), mount_entry_path(m));
989991

0 commit comments

Comments
 (0)
X Tutup