summaryrefslogtreecommitdiff
path: root/kexec/kexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/kexec.c')
-rw-r--r--kexec/kexec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c
index ce0663e..204a4b8 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -848,6 +848,13 @@ int main(int argc, char *argv[])
}
}
+ if ((kexec_flags & KEXEC_ON_CRASH) && !is_crashkernel_mem_reserved()) {
+ printf("Memory for crashkernel is not reserved\n");
+ printf("Please reserve memory by passing ");
+ printf("\"crashkernel=X@Y\" parameter to the kernel\n");
+ die("Then try loading kdump kernel\n");
+ }
+
fileind = optind;
/* Reset getopt for the next pass; called in other source modules */
opterr = 1;