From d59cc79e00e74184d42aec8743d57441c6b734bc Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Sat, 16 Sep 2017 10:16:29 -0600 Subject: 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 --- package/boot/kexec-tools/files/kdump.init | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/boot/kexec-tools/files') diff --git a/package/boot/kexec-tools/files/kdump.init b/package/boot/kexec-tools/files/kdump.init index 057b8cc17a..6a6a94c07e 100755 --- a/package/boot/kexec-tools/files/kdump.init +++ b/package/boot/kexec-tools/files/kdump.init @@ -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 -- cgit v1.2.3