Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-20 19:58:23 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-20 19:58:23 +0530
commitadeae68123314742dd76e2e231400c5cf6237c1e (patch)
treececd8f0195bbf18401a1e66db131a3984b31e024 /examples
parent264db25eefd09a99ecdfa5f095b49343fc143d82 (diff)
reworked how we remove efimanager and add grub
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 02a39e8c..8308d22c 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -300,18 +300,15 @@ def perform_installation(mountpoint):
installation.log(f'Waiting for automatic mirror selection (reflector) to complete.', level=archinstall.LOG_LEVELS.Info)
while archinstall.service_state('reflector') not in ('dead', 'failed'):
time.sleep(1)
-
# Set mirrors used by pacstrap (outside of installation)
if archinstall.arguments.get('mirror-region', None):
archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
- if hasUEFI()==False:
- installation.base_packages.pop(installation.base_packages.index("efibootmgr"))# if we aren't on a uefi system why install efibootmgr
- if archinstall.arguments["bootloader"] == "grub-install":
- installation.base_packages = installation.base_packages.append("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
+ if archinstall.arguments["bootloader"]=="grub-install":
+ installation.add_additional_packages("grub")
installation.set_keyboard_language(archinstall.arguments['keyboard-language'])
installation.add_bootloader(archinstall.arguments["bootloader"])