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

This commit is contained in:
Lennart Poettering
2020-05-14 23:00:52 +02:00
parent 32fcf399bf
commit e2d65cd299
+3 -1
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)