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 <hbathini@linux.ibm.com>
Reviewed-by: Philipp Rudo <prudo@redhat.com>
This commit is contained in:
Hari Bathini 2022-11-21 18:56:08 +05:30 committed by Coiby Xu
parent 4a2dcab26a
commit a833624fe5
1 changed files with 1 additions and 1 deletions

View File

@ -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