[openwrt/openwrt] kexec-tools: issue warning when dd'ing vmcore

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 11 07:15:07 PST 2018


blogic pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/d59cc79e00e74184d42aec8743d57441c6b734bc

commit d59cc79e00e74184d42aec8743d57441c6b734bc
Author: Philip Prindeville <philipp at redfish-solutions.com>
AuthorDate: Sat Sep 16 10:16:29 2017 -0600

    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 at redfish-solutions.com>
---
 package/boot/kexec-tools/Makefile         | 2 +-
 package/boot/kexec-tools/files/kdump.init | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/boot/kexec-tools/Makefile b/package/boot/kexec-tools/Makefile
index 1c686a2..71a10b2 100644
--- a/package/boot/kexec-tools/Makefile
+++ b/package/boot/kexec-tools/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=kexec-tools
 PKG_VERSION:=2.0.14
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kexec
diff --git a/package/boot/kexec-tools/files/kdump.init b/package/boot/kexec-tools/files/kdump.init
index 057b8cc..6a6a94c 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



More information about the lede-commits mailing list