2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 13:00:03 +00:00

Fix path to kernel in boot.cfg

esxi was pointed to the wrong
location.
This commit is contained in:
Jarrod Johnson 2020-06-12 11:12:57 -04:00
parent 76f256a344
commit 92913e1119

View File

@ -66,8 +66,9 @@ def update_boot_esxi(profiledir, profile, label):
elif cfgline.startswith('kernelopt='):
newbootcfg += 'kernelopt={0}\n'.format(kernelargs)
elif cfgline.startswith('kernel='):
newbootcfg += cfgline + '\n'
kern = cfgline.split('=', 1)[1]
kern = kern.replace('/', '')
newbootcfg += 'kernel={0}\n'.format(kern)
filesneeded.append(kern)
elif cfgline.startswith('modules='):
modlist = cfgline.split('=', 1)[1]