2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-21 17:11:58 +00:00

Simplify profile label outside of bootloader

This commit is contained in:
Jarrod Johnson 2024-10-07 13:51:55 -04:00
parent 84c119ce3d
commit 3a0218c421
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,3 @@
label: Confluent installation of VMware ESXi %%VERSION%% Hypervisor
label: VMware ESXi %%VERSION%% Hypervisor
ostype: esxi
kernelargs: runweasel

View File

@ -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)