repart: explain when we exit early and don't do a thing
This commit is contained in:
parent
32fcf399bf
commit
e2d65cd299
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue