0d7c86 04watchdog: split the watchdog module install

2 files Authored by Kairui Song 4 years ago, Committed by Packit Bot 4 years ago,
    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>
    (cherry picked from commit 39d90012a652fa4d9d2534d0168ddad8cacec248)
    
    Resolves: #1890039
    
    patch_name: 0124.patch
    present_in_specfile: true
    location_in_specfile: 124
    squash_commits: true