Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-20 18:49:02 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-20 18:49:02 +0530
commit9c400aa7272fc8eb5c34b19fd65e0f3ed6cb01f5 (patch)
treef6729e9b6e9ea0cf9f2fa2473a0a415098916f19
parent7afba65c261057808fae8e3cb22ddd89fed31f2b (diff)
reworked how we handle bootloaders a little
-rw-r--r--examples/guided.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 643e2c94..408f377a 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -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