reworked how we handle bootloaders a little
This commit is contained in:
parent
7afba65c26
commit
9c400aa727
|
|
@ -307,12 +307,14 @@ def perform_installation(mountpoint):
|
||||||
archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
|
archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
|
||||||
if hasUEFI()==False:
|
if hasUEFI()==False:
|
||||||
installation.base_packages.replace("efibootmgr","")# if we aren't on a uefi system why install efibootmgr
|
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():
|
if installation.minimal_installation():
|
||||||
installation.set_hostname(archinstall.arguments['hostname'])
|
installation.set_hostname(archinstall.arguments['hostname'])
|
||||||
if archinstall.arguments['mirror-region'].get("mirrors",{})!= None:
|
if archinstall.arguments['mirror-region'].get("mirrors",{})!= None:
|
||||||
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
|
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
|
||||||
installation.set_keyboard_language(archinstall.arguments['keyboard-language'])
|
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
|
# If user selected to copy the current ISO network configuration
|
||||||
# Perform a copy of the config
|
# Perform a copy of the config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue