Skip to content

Commit 0ce6be8

Browse files
committed
Start start-cluster-installation when enabling it
Enabling a systemd service required by a target that is already in progress doesn't actually result in it starting, because systemd does not rebuild its run queue from the existing transaction. To get around this, explicitly start the start-cluster-installation service when we enable it in the appliance.
1 parent c902739 commit 0ce6be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/data/agent/files/usr/local/bin/load-config-iso.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ copy_archive_contents() {
8282
is_enabled=$(systemctl is-enabled "$service")
8383
if [[ "${is_enabled}" == "disabled" ]]; then
8484
echo "Service ${service} is disabled, enabling it"
85-
systemctl enable "${service}"
85+
systemctl --no-block --now enable "${service}"
8686
fi
8787
done
8888

0 commit comments

Comments
 (0)