Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index e7895a1a..585389ed 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -903,15 +903,22 @@ class Installer:
'--debug'
]
- if SysInfo.has_uefi() and efi_partition is not None:
+ if SysInfo.has_uefi():
+ if not efi_partition:
+ raise ValueError('Could not detect efi partition')
+
info(f"GRUB EFI partition: {efi_partition.dev_path}")
self.pacman.strap('efibootmgr') # TODO: Do we need? Yes, but remove from minimal_installation() instead?
+ boot_dir_arg = []
+ if boot_partition != efi_partition:
+ boot_dir_arg.append(f'--boot-directory={boot_dir}')
+
add_options = [
'--target=x86_64-efi',
f'--efi-directory={efi_partition.mountpoint}',
- f'--boot-directory={boot_dir}',
+ *boot_dir_arg,
'--bootloader-id=GRUB',
'--removable'
]