From 674e2887f3f2d561674b967ae48729fb22b9e555 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 5 Jan 2021 11:55:30 -0500 Subject: [PATCH] Fix ESXi deployment without working DHCP apiclient was instructing itself to use IPv4 prematurely. Change the dcuiweasel hook to delay that change until after all data has been fetched. --- confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel b/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel index af361c1d..7c08b001 100644 --- a/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel +++ b/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel @@ -15,10 +15,11 @@ mgr=$(grep MANAGER: /etc/confluent/confluent.info|head -n 1|awk '{print $2}') cp /opt/confluent/bin/clortho /clortho /clortho $node $mgr > /etc/confluent/confluent.apikey cat /tls/*.pem > /etc/confluent/ca.pem -/opt/confluent/bin/apiclient /confluent-api/self/deploycfg > /etc/confluent/confluent.deploycfg -profile=$(grep ^profile: /etc/confluent/confluent.deploycfg | sed -e 's/^profile: //') +/opt/confluent/bin/apiclient /confluent-api/self/deploycfg > /etc/confluent/confluent.deploycfg.new +profile=$(grep ^profile: /etc/confluent/confluent.deploycfg.new | sed -e 's/^profile: //') /opt/confluent/bin/apiclient /confluent-public/os/$profile/kickstart > /etc/confluent/ks.cfg /opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/modinstall > /tmp/modinstall +mv /etc/confluent/confluent.deploycfg.new /etc/confluent/confluent.deploycfg export node mgr profile . /tmp/modinstall exec /bin/install