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 <bhe@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
7c65f40916
commit
1060846036
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user