]> git.ipfire.org Git - thirdparty/dracut.git/commit
04watchdog: split the watchdog module install
authorKairui Song <kasong@redhat.com>
Wed, 9 Sep 2020 18:18:02 +0000 (02:18 +0800)
committerDaniel Molkentin <daniel@molkentin.de>
Thu, 17 Sep 2020 12:52:48 +0000 (14:52 +0200)
commit39d90012a652fa4d9d2534d0168ddad8cacec248
tree0b9a67fe12e898bbb396c4a0f43e4f634feee900
parentd76e9ad5d7b16edb3c544ed3888640bea0efbf72
04watchdog: split the watchdog module install

In some cases, user only want to include the watchdog module, not the
wdctl or any other userspace helper. For example, systemd have a
RebootWatchdogSec option that use watchdog to prevent reboot hangs. And
it can help prevent machines hangs when reboot directly within the
initramfs stage. So split the module installation to a standlone module.

Also when watchdog-module get included, install driver for all loaded
watchdog instaed of only install driver for active watchdog. Both
watchdog and watchdog-module return 255 in check(), so it's enabled only
when manually included, the watchdog may get configured/activated later.

Signed-off-by: Kairui Song <kasong@redhat.com>
modules.d/04watchdog-modules/module-setup.sh [new file with mode: 0755]
modules.d/04watchdog/module-setup.sh