Fix E712
This commit is contained in:
parent
126c7ebfca
commit
4a34b3a9d0
|
|
@ -363,7 +363,7 @@ def ask_for_a_timezone():
|
|||
|
||||
def ask_for_bootloader() -> str:
|
||||
bootloader = "systemd-bootctl"
|
||||
if hasUEFI() == False:
|
||||
if not hasUEFI():
|
||||
bootloader = "grub-install"
|
||||
else:
|
||||
bootloader_choice = input("Would you like to use GRUB as a bootloader instead of systemd-boot? [y/N] ").lower()
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ def perform_installation(mountpoint):
|
|||
installation.set_hostname(archinstall.arguments['hostname'])
|
||||
if archinstall.arguments['mirror-region'].get("mirrors", None) is not None:
|
||||
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
|
||||
if archinstall.arguments["bootloader"] == "grub-install" and hasUEFI() == True:
|
||||
if archinstall.arguments["bootloader"] == "grub-install" and hasUEFI():
|
||||
installation.add_additional_packages("grub")
|
||||
installation.set_keyboard_language(archinstall.arguments['keyboard-language'])
|
||||
installation.add_bootloader(archinstall.arguments["bootloader"])
|
||||
|
|
|
|||
Loading…
Reference in New Issue