From 5b2306b5620d8d99efb1f47f8b736cfd5cd786b4 Mon Sep 17 00:00:00 2001 From: Lichen Liu Date: Thu, 22 Dec 2022 13:31:17 +0800 Subject: [PATCH] fadump: avoid status check while starting in fadump mode Resolves: bz2139000 Upstream: Fedora Conflict: None commit a833624fe57a28a4ccb44f7f27f06a7e867e8755 Author: Hari Bathini Date: Mon Nov 21 18:56:08 2022 +0530 fadump: avoid status check while starting in fadump mode With kernel commit 607451ce0aa9b ("powerpc/fadump: register for fadump as early as possible"), 'kdumpctl start' prematurely returns with the below message: "Kdump already running: [WARNING]" instead of setting default initrd with dump capture capability as required for fadump. Skip status check in fadump mode to avoid this problem. Signed-off-by: Hari Bathini Reviewed-by: Philipp Rudo Signed-off-by: Lichen Liu --- kdumpctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdumpctl b/kdumpctl index 119c347..94c7e2b 100755 --- a/kdumpctl +++ b/kdumpctl @@ -1078,7 +1078,7 @@ start() return 1 fi - if check_current_status; then + if [[ $DEFAULT_DUMP_MODE == "kdump" ]] && check_current_kdump_status; then dwarn "Kdump already running: [WARNING]" return 0 fi