1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

repart: do not quit earlier when --empty=force

Follow-up for 0ae5ffe0630aecd91b00af0ddd90c32c2d9c663b.
This commit is contained in:
Yu Watanabe 2020-02-07 17:32:41 +09:00 committed by Frantisek Sumsal
parent 676047438a
commit 03b76a1977

View File

@ -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);