watchdog: clean return of installkernel()

return 0, otherwise if _alldrivers is empty, the return code is fail
Harald Hoyer 2016-04-18 15:49:06 +02:00 committed by Pratyush Anand
parent 4c83fd10ab
commit 0eb1ee3db2
1 changed files with 2 additions and 0 deletions

View File

@ -73,4 +73,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
}