mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
repart: do not quit earlier when --empty=force
Follow-up for 0ae5ffe0630aecd91b00af0ddd90c32c2d9c663b.
This commit is contained in:
parent
676047438a
commit
03b76a1977
@ -2946,7 +2946,7 @@ static int run(int argc, char *argv[]) {
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (context->n_partitions <= 0)
|
if (context->n_partitions <= 0 && arg_empty != EMPTY_FORCE)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
r = find_root(&node);
|
r = find_root(&node);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user