[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.
main
Kevin Kofler 8 years ago
parent 0131d7fbf1
commit 62bded1447

@ -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)

Loading…
Cancel
Save