From f9351484a4b12099689ded018766e926e98e3e00 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 17 Oct 2025 09:32:33 -0400 Subject: [PATCH] Add fallback if getinstalldisk detects no preferred disks --- .../esxi7/profiles/hypervisor/scripts/getinstalldisk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/getinstalldisk b/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/getinstalldisk index 6e3c710a..c66b7103 100644 --- a/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/getinstalldisk +++ b/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/getinstalldisk @@ -124,6 +124,11 @@ def main(): with open('/tmp/storagecfg', 'w') as sc: sc.write(f'clearpart --all --drives={nd[0]} --overwritevmfs\n') sc.write(f'install --drive={nd[0]} --overwritevmfs\n') + else: + with open('/tmp/storagecfg', 'w') as sc: + sc.write(f'clearpart --firstdisk --overwritevmfs\n') + sc.write(f'install --firstdisk --overwritevmfs\n') + if __name__ == '__main__': main()