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:
parent
84c119ce3d
commit
3a0218c421
@ -1,3 +1,3 @@
|
||||
label: Confluent installation of VMware ESXi %%VERSION%% Hypervisor
|
||||
label: VMware ESXi %%VERSION%% Hypervisor
|
||||
ostype: esxi
|
||||
kernelargs: runweasel
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user