mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Fix osdeploy updateboot to find multiple grub.cfg
This commit is contained in:
parent
82e0d9c434
commit
1a40842f06
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user