From 0bfd8fed32f2fed1c151613ac9bd300d28e1817a Mon Sep 17 00:00:00 2001 From: "Guilherme G. Piccoli" Date: Thu, 15 Dec 2022 18:19:05 -0300 Subject: [PATCH] kdump-load: Create the kdump/pstore directory early in boot Or else, the service doesn't work properly (yet it doesn't fail to prevent boot stalls). Reported-by: John Schoenick Signed-off-by: Guilherme G. Piccoli --- kdump-load.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kdump-load.sh b/kdump-load.sh index 79ee81f..fbb0ae4 100644 --- a/kdump-load.sh +++ b/kdump-load.sh @@ -88,7 +88,11 @@ fi # Find the proper mount point for /home: DEVN_MOUNTED="$(findmnt "${MOUNT_DEVNODE}" -fno TARGET)" + +# Create the kdump folder here, as soon as possible, given the +# importance of such directory in all kdump/pstore steps. KDUMP_FOLDER="${DEVN_MOUNTED}/${KDUMP_FOLDER}" +mkdir -p "${KDUMP_FOLDER}" echo "${KDUMP_FOLDER}" > "${KDUMP_MNT}" sync "${KDUMP_MNT}"