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

Fix osdeploy updateboot to find multiple grub.cfg

This commit is contained in:
Jarrod Johnson 2024-08-15 10:54:52 -04:00
parent 82e0d9c434
commit 1a40842f06

View File

@ -155,11 +155,12 @@ def update_boot_esxi(profiledir, profile, label):
def find_glob(loc, fileglob):
grubcfgs = []
for cdir, _, fs in os.walk(loc):
for f in fs:
if fnmatch(f, fileglob):
return [os.path.join(cdir, f)]
return None
grubcfgs.append(os.path.join(cdir, f))
return grubcfgs
def update_boot_linux(profiledir, profile, label):