]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: Improve error message
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 15 May 2024 14:21:45 +0000 (16:21 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 May 2024 10:34:28 +0000 (12:34 +0200)
src/partition/repart.c

index 7f7b68f9ff4741fcfe1b895cc99a526f43526773..45f0ab15b5a4375855144f3e556afdd60147d454 100644 (file)
@@ -7819,7 +7819,7 @@ static int find_root(Context *context) {
                                 if (r == -EUCLEAN)
                                         return btrfs_log_dev_root(LOG_ERR, r, p);
                                 if (r != -ENODEV)
-                                        return log_error_errno(r, "Failed to determine backing device of %s: %m", p);
+                                        return log_error_errno(r, "Failed to determine backing device of %s%s: %m", strempty(arg_root), p);
                         } else
                                 return 0;
                 }