diff --git a/scripts/grub.py b/scripts/grub.py index 01383d6..24ed205 100644 --- a/scripts/grub.py +++ b/scripts/grub.py @@ -55,7 +55,7 @@ def mbusb_update_grub_cfg(): (loopback_cfg_list, lambda x: 'efi' in x.lower()), (loopback_cfg_list, lambda x: 'boot' in x.lower()), (grub_cfg_list, lambda x: 'efi' in x.lower()), - (grub_cfg_list, lambda x: 'boot' in x.lower()), + (grub_cfg_list, lambda x: 'boot' in x.lower() and 'efi' not in x.lower()), (loopback_cfg_list, lambda x: 'efi' not in x.lower() and 'boot' not in x.lower()), (grub_cfg_list, @@ -66,7 +66,9 @@ def mbusb_update_grub_cfg(): # We could 'break' here but will let the iteration continue # in order to lower the chance of keeping latent bugs. - if 0