diff --git a/src/partition/repart.c b/src/partition/repart.c index a38950c714..51706c839a 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -4498,6 +4498,10 @@ static int do_copy_files(Context *context, Partition *p, const char *root) { return r; sfd = chase_and_open(*source, arg_copy_source, CHASE_PREFIX_ROOT, O_CLOEXEC|O_NOCTTY, NULL); + if (sfd == -ENOENT) { + log_notice_errno(sfd, "Failed to open source file '%s%s', skipping: %m", strempty(arg_copy_source), *source); + continue; + } if (sfd < 0) return log_error_errno(sfd, "Failed to open source file '%s%s': %m", strempty(arg_copy_source), *source);