Skip to content

Commit

Permalink
AGENT-905: Start agent-add-node.service in appliance
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneb committed Apr 26, 2024
1 parent 915879e commit 6ec2525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/data/agent/files/usr/local/bin/load-config-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ copy_archive_contents() {

# Start the service which does the installation
local installation_service="start-cluster-installation.service"
if cpio -tc <"${unzipped_file}" | grep -q '^/etc/assisted/workflow/add-nodes\.env$'; then
installation_service="agent-add-node.service"
fi
is_enabled=$(systemctl is-enabled "$installation_service")
if [[ "${is_enabled}" == "disabled" ]]; then
echo "Service ${installation_service} is disabled, starting it"
Expand Down
1 change: 1 addition & 0 deletions pkg/asset/agent/image/unconfigured_ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func GetConfigImageFiles() []string {
"/etc/assisted/hostconfig", // all files in directory
"/etc/assisted/hostnames", // all files in directory
"/etc/assisted/network", // all files in directory
"/etc/assisted/workflow", // all files in directory
"/etc/NetworkManager/conf.d/clientid.conf",
"/etc/issue",
"/etc/systemd/system.conf.d/10-default-env.conf",
Expand Down

0 comments on commit 6ec2525

Please sign in to comment.