diff --git a/initramfs/kdump-collect.sh b/initramfs/kdump-collect.sh index dfaf0a6..8e45fdc 100644 --- a/initramfs/kdump-collect.sh +++ b/initramfs/kdump-collect.sh @@ -35,6 +35,11 @@ BASE_FOLDER="$(cat /usr/lib/kdump/kdump.dir)" KDUMP_FOLDER="/kdump_path/${BASE_FOLDER}/crash/${KDUMP_TIMESTAMP}" + # Check if the device node exists - or else, just bails-out. + if [ ! -e "${MOUNT_POINT}" ]; then + reboot -f + fi + mkdir -p "/kdump_path" if ! mount "${MOUNT_POINT}" /kdump_path; then reboot -f