Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-20 22:09:27 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-21 13:35:03 +0530
commit63a94a57708bdfb4cdfde0c24af2d324ba191beb (patch)
tree5776556a59e80516a9ac5362de62813b6396b0a6 /archinstall
parent85c5275a8f35a7a0c0713d76c68ae0a127f1421c (diff)
add efibootmgr only on uefi systems
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py8
-rw-r--r--archinstall/lib/user_interaction.py2
2 files changed, 6 insertions, 4 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 10a9ad4b..f6c891a3 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -39,7 +39,7 @@ class Installer():
:type hostname: str, optional
"""
- def __init__(self, target, *, base_packages='base base-devel linux linux-firmware efibootmgr'):
+ def __init__(self, target, *, base_packages='base base-devel linux linux-firmware'):
self.target = target
self.init_time = time.strftime('%Y-%m-%d_%H-%M-%S')
self.milliseconds = int(str(time.time()).split('.')[1])
@@ -50,8 +50,10 @@ class Installer():
}
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"))
+ if hasUEFI():
+ self.base_packages.append("efibootmgr")
+ else:
+ self.base_packages.append("grub")
self.post_base_install = []
storage['session'] = self
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 175079ee..70ff7a1e 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -149,7 +149,7 @@ def ask_for_bootloader() -> str:
if hasUEFI()==False:
bootloader="grub-install"
else:
- bootloader_choice = input("Would you like to use GRUB as a bootloader instead off systemd-boot [y/N] ").lower()
+ bootloader_choice = input("Would you like to use GRUB as a bootloader instead of systemd-boot? [y/N] ").lower()
if bootloader_choice == "y":
bootloader="grub-install"
return bootloader