The old implementation in installkernel() will not return success when
added wdt module is not iTCO_wdt. The returned value is related to the
comparison. This is not correct and will cause kdump load failed.
Now move the exact wdt module inserting to the right place, this can
be fixed.
Signed-off-by: Baoquan He <bhe(a)redhat.com>
---
dracut-module-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 4e7d5dc..bdadf7c 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -489,7 +489,7 @@ install() {
installkernel() {
wdt=$(lsmod|cut -f1 -d' '|grep "wdt$")
if [ -n "$wdt" ]; then
- instmods $wdt
[ "$wdt" = "iTCO_wdt" ] && instmods lpc_ich
+ instmods $wdt
fi
}
--
1.8.3.1