From 92913e111955149cc0a6074eae5a5c43fedaa3d5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 12 Jun 2020 11:12:57 -0400 Subject: [PATCH] Fix path to kernel in boot.cfg esxi was pointed to the wrong location. --- confluent_server/confluent/osimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index b3ef9555..7ef3d0a6 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -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]