]> git.ipfire.org Git - thirdparty/dracut.git/commit
watchdog: ensure that module is loaded as early as possible 121/head
authorPratyush Anand <panand@redhat.com>
Wed, 16 Mar 2016 03:46:24 +0000 (09:16 +0530)
committerHarald Hoyer <harald@redhat.com>
Wed, 16 Mar 2016 04:05:51 +0000 (05:05 +0100)
commite343c85763e7b981a5e9b53b04f90f0d83bffaaf
tree375be3ddaeb727794d8c157b3e99d2ff0b645c5f
parent3aac6827444c897aab59d7638aa191d510fd4758
watchdog: ensure that module is loaded as early as possible

It is expected that a watchdog module will disable an active watchdog when
its probe is called ie, when it is loaded. So an early load of the module
will help to disable it earlier.
This can be helpful in some corner cases where kdump and watchdog daemon
both are active.

Testing:
    -- When watchdog kernel modules were added
# dracut --no-hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img -f etc/cmdline.d/00-watchdog.conf
  rd.driver.pre=iTCO_wdt,lpc_ich,

Signed-off-by: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
modules.d/04watchdog/module-setup.sh