From a833624fe57a28a4ccb44f7f27f06a7e867e8755 Mon Sep 17 00:00:00 2001 From: Hari Bathini Date: Mon, 21 Nov 2022 18:56:08 +0530 Subject: [PATCH] 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 --- kdumpctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdumpctl b/kdumpctl index af93202..3cad3dd 100755 --- a/kdumpctl +++ b/kdumpctl @@ -1061,7 +1061,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