From 3a0218c4212b0ab74de0a4572494b728a3b5f852 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 7 Oct 2024 13:51:55 -0400 Subject: [PATCH] Simplify profile label outside of bootloader --- confluent_osdeploy/esxi7/profiles/hypervisor/profile.yaml | 2 +- confluent_server/confluent/osimage.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/confluent_osdeploy/esxi7/profiles/hypervisor/profile.yaml b/confluent_osdeploy/esxi7/profiles/hypervisor/profile.yaml index dc0d1a33..b9c84687 100644 --- a/confluent_osdeploy/esxi7/profiles/hypervisor/profile.yaml +++ b/confluent_osdeploy/esxi7/profiles/hypervisor/profile.yaml @@ -1,3 +1,3 @@ -label: Confluent installation of VMware ESXi %%VERSION%% Hypervisor +label: VMware ESXi %%VERSION%% Hypervisor ostype: esxi kernelargs: runweasel diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index 387922fa..8b9101ec 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -91,10 +91,13 @@ def update_boot_esxi(profiledir, profile, label): newbootcfg = '' efibootcfg = '' filesneeded = [] + localabel = label + if 'installation of' not in localabel: + localabel = 'Confluent installation of {}'.format(localabel) for cfgline in bootcfg: if cfgline.startswith('title='): - newbootcfg += 'title={0}\n'.format(label) - efibootcfg += 'title={0}\n'.format(label) + newbootcfg += 'title={0}\n'.format(localabel) + efibootcfg += 'title={0}\n'.format(localabel) elif cfgline.startswith('kernelopt='): newbootcfg += 'kernelopt={0}\n'.format(kernelargs) efibootcfg += 'kernelopt={0}\n'.format(kernelargs)