reworked how we remove efimanager

This commit is contained in:
advaithm 2021-04-20 20:01:15 +05:30
parent adeae68123
commit 64a785e0ec
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
1 changed files with 3 additions and 2 deletions

View File

@ -48,9 +48,10 @@ class Installer():
'base' : False, 'base' : False,
'bootloader' : False 'bootloader' : False
} }
if hasUEFI() == False:
base_packages.replace(" efibootmgr","")
self.base_packages = base_packages.split(' ') if type(base_packages) is str else base_packages self.base_packages = base_packages.split(' ') if type(base_packages) is str else base_packages
if hasUEFI() == False:
self.base_packages.pop(self.base_packages.index("efibootmgr"))
self.post_base_install = [] self.post_base_install = []
storage['session'] = self storage['session'] = self