From 1060846036762ebabfa50ce01d0e4c4657a7b371 Mon Sep 17 00:00:00 2001 From: Baoquan He Date: Thu, 23 Jan 2014 14:09:46 +0800 Subject: [PATCH] insert wdt kernel modules when watchdog is active When watchdog is enabled in 1st kernel, then crash dump in kdump kernel will be interrupted if watchdog is timeout. Since some wdt drivers can stop the watchdog when its driver is loaded, e.g iTCO_wdt, this can benefit crash dump. Add watchdog driver which is active in system to initramfs, its loading can stop watchdog. For now, put this adding in 99kdumpbase. Signed-off-by: Baoquan He Acked-by: Vivek Goyal --- dracut-module-setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 501d7f6..4e7d5dc 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -485,3 +485,11 @@ install() { # at some point of time. kdump_check_iscsi_targets } + +installkernel() { + wdt=$(lsmod|cut -f1 -d' '|grep "wdt$") + if [ -n "$wdt" ]; then + instmods $wdt + [ "$wdt" = "iTCO_wdt" ] && instmods lpc_ich + fi +}