]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: explain when we exit early and don't do a thing
authorLennart Poettering <lennart@poettering.net>
Tue, 12 May 2020 09:20:39 +0000 (11:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 May 2020 21:00:52 +0000 (23:00 +0200)
src/partition/repart.c

index 82d60cd42b47c5712e48556a061c50077da10d9f..6af3871c3567e4eb7cbe592dbe1e7614ae789ae8 100644 (file)
@@ -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)