]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
watchdog: clean return of installkernel()
authorHarald Hoyer <harald@redhat.com>
Mon, 18 Apr 2016 13:49:06 +0000 (15:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 18 Apr 2016 13:50:33 +0000 (15:50 +0200)
return 0, otherwise if _alldrivers is empty, the return code is fail

modules.d/04watchdog/module-setup.sh

index 04686f618c9c4cc0814365aa0bd82ac9ba6ad13d..7b2685d4c08e94dfa9e46ed75b790e6ad98b0fe7 100755 (executable)
@@ -74,4 +74,6 @@ installkernel() {
     # ensure that watchdog module is loaded as early as possible
     _alldrivers="${!_drivers[*]}"
     [[ $_alldrivers ]] && echo "rd.driver.pre=${_alldrivers// /,}" > ${initdir}/etc/cmdline.d/00-watchdog.conf
+
+    return 0
 }