kexec-tools: issue warning when dd'ing vmcore
With no warning, it just looks like the box has hung during boot. We don't want users resetting it without having captured a crashdump. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
committed by
John Crispin
parent
14951e8f8e
commit
d59cc79e00
@@ -43,8 +43,10 @@ run_kdump() {
|
||||
timestamp=$(date "+%Y%m%dT%H%M%S")
|
||||
|
||||
if [ "$save_vmcore" -eq 1 ]; then
|
||||
echo -n "Saving vmcore (this may take a while)..."
|
||||
# would like 'sparse' but busybox doesn't support it
|
||||
dd if=/proc/vmcore of="$path/vmcore-$timestamp" conv=fsync bs=1M
|
||||
echo " done"
|
||||
fi
|
||||
|
||||
if [ "$save_dmesg" -eq 1 ]; then
|
||||
|
||||
Reference in New Issue
Block a user