From 3690dda1778c55ff5b715dd3b88e7cf71ceee694 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 21 Jul 2021 16:48:38 -0400 Subject: [PATCH] Actually enable firstboot execution --- .../el8-diskless/profiles/default/scripts/post.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8-diskless/profiles/default/scripts/post.sh b/confluent_osdeploy/el8-diskless/profiles/default/scripts/post.sh index 8635f0db..f87c0dc0 100644 --- a/confluent_osdeploy/el8-diskless/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/el8-diskless/profiles/default/scripts/post.sh @@ -1,7 +1,7 @@ #!/bin/sh # This script is executed 'chrooted' into a cloned disk target before rebooting -# +# nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') confluent_apikey=$(cat /etc/confluent/confluent.apikey) @@ -18,6 +18,7 @@ curl -f https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/fi mkdir -p /opt/confluent/bin curl -f https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/firstboot.sh > /opt/confluent/bin/firstboot.sh chmod +x /opt/confluent/bin/firstboot.sh +systemctl enable firstboot run_remote post.custom # post scripts may be placed into post.d, e.g. post.d/01-firstaction.sh, post.d/02-secondaction.sh