From 5f34fac2bc727524dbae5ed5026fa008ebd92191 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 9 Jul 2026 14:13:12 -0400 Subject: [PATCH] confluent_nodename variable might not survive to imageboot Pull it from the confluent.info file. --- .../ubuntu20.04-diskless/profiles/default/scripts/imageboot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/imageboot.sh b/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/imageboot.sh index ff59ddb1..8f2f4701 100644 --- a/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/imageboot.sh +++ b/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/imageboot.sh @@ -21,6 +21,7 @@ fi loopdev=$(losetup -f) export mountsrc=$loopdev losetup -r $loopdev /mnt/remoteimg/rootimg.sfs +confluent_nodename=$(grep ^NODENAME: /etc/confluent/confluent.info |awk '{print $2}') if grep '^Format: confluent_crypted' /tmp/rootimg.info > /dev/null; then while ! curl -sf -H "CONFLUENT_NODENAME: $confluent_nodename" -H "CONFLUENT_APIKEY: $(cat /etc/confluent/confluent.apikey)" https://$confluent_mgr/confluent-api/self/profileprivate/pending/rootimg.key > /tmp/rootimg.key; do echo "Unable to retrieve private key from $confluent_mgr (verify that confluent can access /var/lib/confluent/private/os/$confluent_profile/pending/rootimg.key)"