Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 15:08:50 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 15:08:50 -0400
commit4a34b3a9d032e62265f31444339ceba1ef0d7168 (patch)
treed5e0fdb4c17b52802a265c7dfc41c0e7c334437e
parent126c7ebfca16156d4e1c738a5f562ba99a4ab5f2 (diff)
Fix E712
-rw-r--r--archinstall/lib/user_interaction.py2
-rw-r--r--examples/guided.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index f39eea1c..6289ef0a 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -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()
diff --git a/examples/guided.py b/examples/guided.py
index f5da9265..a1a49448 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -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"])