From 1a40842f0611a5890893c0278836295be3043790 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 15 Aug 2024 10:54:52 -0400 Subject: [PATCH] Fix osdeploy updateboot to find multiple grub.cfg --- confluent_server/confluent/osimage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index 5ff28d16..387922fa 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -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):