MountImages: actually support optional paths
ENOENT did not cause an image mount to be skipped, fix it
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user