From aa2a74ad9dbcecb1e5929d293c16445db0af5551 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 4 Aug 2020 15:54:25 +0200 Subject: [PATCH] repart: make error code when operating on non-existing file a bit more useful --- src/partition/repart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partition/repart.c b/src/partition/repart.c index 4768600a8d..fc207585b0 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -3202,7 +3202,7 @@ static int find_root(char **ret, int *ret_fd) { r = acquire_root_devno(arg_node, O_RDONLY|O_CLOEXEC, ret, ret_fd); if (r < 0) - return log_error_errno(r, "Failed to determine backing device of %s: %m", arg_node); + return log_error_errno(r, "Failed to open file or determine backing device of %s: %m", arg_node); return 0; } -- 2.25.1