From bdb60065b2405ceb90a66996eca383d362070f1c Mon Sep 17 00:00:00 2001 From: Lichen Liu Date: Wed, 21 Sep 2022 17:13:44 +0800 Subject: [PATCH] mkdumprd: Improve error messages on non-existing NFS target directories Resolves: bz2090534 Upstream: Fedora Conflict: None commit 4d52b7d5480ae27bfe70a55030b3be1282843662 Author: Lichen Liu Date: Tue Sep 6 11:15:15 2022 +0800 mkdumprd: Improve error messages on non-existing NFS target directories When kdump is configured with a NFS location, and the remote directory does not exist, kdump.service fails with a confusing error message. kdumpctl[2172]: kdump: Dump path "/tmp/mkdumprd.ftWhOF/target/dumps" does not exist in dump target "10.111.113.2:/srv/kdump" We just need to print the remote directory "dumps" in such case, because "/tmp/mkdumprd.ftWhOF/target" is the local temporary mount point. Signed-off-by: Lichen Liu Reviewed-by: Coiby Xu Signed-off-by: Lichen Liu --- mkdumprd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdumprd b/mkdumprd index 500146b..82fbc61 100644 --- a/mkdumprd +++ b/mkdumprd @@ -242,7 +242,7 @@ check_user_configured_target() # For user configured target, use $SAVE_PATH as the dump path within the target if [[ ! -d "$_mnt/$SAVE_PATH" ]]; then - perror_exit "Dump path \"$_mnt/$SAVE_PATH\" does not exist in dump target \"$_target\"" + perror_exit "Dump path \"$SAVE_PATH\" does not exist in dump target \"$_target\"" fi check_size fs "$_target"