diff --git a/usr/lib/greenboot/check/required.d/02_watchdog.sh b/usr/lib/greenboot/check/required.d/02_watchdog.sh index 959254f..482c6d1 100644 --- a/usr/lib/greenboot/check/required.d/02_watchdog.sh +++ b/usr/lib/greenboot/check/required.d/02_watchdog.sh @@ -42,14 +42,14 @@ check_if_current_boot_is_wd_triggered() { fi } -if ! check_if_there_is_a_watchdog ; then - echo "No watchdog on the system, skipping check" - exit 0 -fi - # This is in order to test check_if_current_boot_is_wd_triggered # function within a container if [ "${1}" != "--source-only" ]; then + if ! check_if_there_is_a_watchdog ; then + echo "No watchdog on the system, skipping check" + exit 0 + fi + source_configuration_file if [ "${GREENBOOT_WATCHDOG_CHECK_ENABLED,,}" != "true" ]; then echo "Watchdog check is disabled"