[bootloader] Fix vfat_correct_case.

If the directory already existed, vfat_correct_case was returning only
the last part rather than the full path as it is supposed to.
This commit is contained in:
Kevin Kofler 2016-11-05 17:41:38 +01:00
parent 0131d7fbf1
commit 62bded1447

View File

@ -253,7 +253,7 @@ def install_grub(efi_directory, fw_type):
def vfat_correct_case(parent, name):
for candidate in os.listdir(parent):
if name.lower() == candidate.lower():
return candidate
return os.path.join(parent, candidate)
return os.path.join(parent, name)