repart: explain when we exit early and don't do a thing

This commit is contained in:
Lennart Poettering 2020-05-12 11:20:39 +02:00
parent 32fcf399bf
commit e2d65cd299
1 changed files with 3 additions and 1 deletions

View File

@ -2946,8 +2946,10 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return r;
if (context->n_partitions <= 0 && arg_empty != EMPTY_FORCE)
if (context->n_partitions <= 0 && arg_empty != EMPTY_FORCE) {
log_info("Didn't find any partition definition files, nothing to do.");
return 0;
}
r = find_root(&node);
if (r < 0)