summaryrefslogtreecommitdiff
path: root/src/partition
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-25 15:09:53 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-11-26 08:27:41 +0900
commit5fe8dbe728e5a4aeda0c6ce7748592614565dbe9 (patch)
tree65e5784a0aae64d883e1b4ed6214d9f8962e8ce6 /src/partition
parentf38e89c23ce52efa27bb47f5c3dafecdb987492b (diff)
downloadsystemd-5fe8dbe728e5a4aeda0c6ce7748592614565dbe9.tar.gz
repart: Remove bogus check
The --empty option applies to the partition table of the block device, not the number of definition files we've read. Also, even if we don't find any definition files, let's not shortcut execution so we can run repart on a device/loopback file to get information on the partition table.
Diffstat (limited to 'src/partition')
-rw-r--r--src/partition/repart.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c
index 7e56cc5155..6951a1bf00 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -6323,11 +6323,6 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return r;
- if (context->n_partitions <= 0 && arg_empty == EMPTY_REFUSE) {
- log_info("Didn't find any partition definition files, nothing to do.");
- return 0;
- }
-
r = find_root(&node, &backing_fd);
if (r < 0)
return r;