From 6335ea1eabd99cc7b1fbbe27e10e314407f59b06 Mon Sep 17 00:00:00 2001 From: David Murphy Date: Wed, 6 Nov 2024 11:02:23 -0700 Subject: [PATCH] Updated debugging output --- bootstrap-salt.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 9ef7ec6..f26bdee 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -144,8 +144,8 @@ __check_services_systemd_functional() { # shellcheck disable=SC2034 _SYSTEMD_HELP="$(systemctl --help)" else - echoerror "systemctl: command not found, assume systemd not implemented" _SYSTEMD_FUNCTIONAL=$BS_FALSE + echoerror "systemctl: command not found, assume systemd not implemented, _SYSTEMD_FUNCTIONAL $_SYSTEMD_FUNCTIONAL" fi } # ---------- end of function __check_services_systemd_functional ---------- @@ -2483,9 +2483,10 @@ __check_services_systemd() { fi _SYSTEMD_ACTIVE=$(/bin/systemctl daemon-reload 2>&1 | grep 'System has not been booted with systemd') + echodebug "__check_services_systemd _SYSTEMD_ACTIVE result ,$_SYSTEMD_ACTIVE," if [ "$_SYSTEMD_ACTIVE" != "" ]; then - echodebug "systemd is not functional, despite systemctl being present" - _SYSTEMD_FUNCTIONAL="$BS_FALSE" + _SYSTEMD_FUNCTIONAL=$BS_FALSE + echodebug "systemd is not functional, despite systemctl being present, setting _SYSTEMD_FUNCTIONAL false, $_SYSTEMD_FUNCTIONAL" return 1 fi