reworked how we handle bootloaders a little

This commit is contained in:
advaithm 2021-04-20 18:49:02 +05:30
parent 7afba65c26
commit 9c400aa727
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
1 changed files with 3 additions and 1 deletions

View File

@ -307,12 +307,14 @@ def perform_installation(mountpoint):
archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
if hasUEFI()==False:
installation.base_packages.replace("efibootmgr","")# if we aren't on a uefi system why install efibootmgr
if archinstall.arguments["bootloader"] == "grub-install":
installation.base_packages = installation.base_packages + " grub"
if installation.minimal_installation():
installation.set_hostname(archinstall.arguments['hostname'])
if archinstall.arguments['mirror-region'].get("mirrors",{})!= None:
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
installation.set_keyboard_language(archinstall.arguments['keyboard-language'])
installation.add_bootloader()
installation.add_bootloader(archinstall.arguments["bootloader"])
# If user selected to copy the current ISO network configuration
# Perform a copy of the config