diff --git a/src/partition/repart.c b/src/partition/repart.c index 71ac2bc019..0e5dadaf60 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -2946,7 +2946,7 @@ static int run(int argc, char *argv[]) { if (r < 0) return r; - if (context->n_partitions <= 0) + if (context->n_partitions <= 0 && arg_empty != EMPTY_FORCE) return 0; r = find_root(&node);