Skip to content

Commit 6030caf

Browse files
sbernhardadamruzicka
authored andcommitted
Fixes #38736 - yggdrasild not enabled
yggdrasild systemctl service (the old version with 'd' at the end') did not start during host provisioning.
1 parent 7027d01 commit 6030caf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/views/unattended/provisioning_templates/registration/remote_execution_pull_setup.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ else
6969
fi
7070

7171
YGGDRASIL_SERVICE=yggdrasil.service
72-
systemctl cat $YGGDRASIL_SERVICE >/dev/null 2>/dev/null || YGGDRASIL_SERVICE=yggdrasild.service
72+
if ! systemctl list-unit-files "$YGGDRASIL_SERVICE" | grep -q "^$YGGDRASIL_SERVICE"; then
73+
YGGDRASIL_SERVICE="yggdrasild.service"
74+
fi
7375

7476
# start the yggdrasild service
7577
if systemctl is-enabled $YGGDRASIL_SERVICE 2>/dev/null && [ -n "$YGGDRASIL_RESTART_DELAY" ] && [ "$YGGDRASIL_RESTART_DELAY" -gt 0 ]; then

0 commit comments

Comments
 (0)