MountImages: actually support optional paths

ENOENT did not cause an image mount to be skipped, fix it
This commit is contained in:
Luca Boccassi
2021-02-16 14:33:23 +00:00
parent 1e69eaddf8
commit b850a9b29f
+2
View File
@@ -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));