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.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 02c63a11..4c617582 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -322,7 +322,15 @@ class Installer():
return True
def add_bootloader(self, bootloader='systemd-bootctl'):
- self.log(f'Adding bootloader {bootloader} to {self.boot_partition}', level=LOG_LEVELS.Info)
+ # This logic is only for debug/log purposes:
+ # (it could be completely ommitted if we just print /mnt instead)
+ boot_partition = None
+ for partition in self.partitions:
+ if partition.mountpoint == self.target+'/boot'
+ boot_partition = partition
+ break
+
+ self.log(f'Adding bootloader {bootloader} to {boot_partition}', level=LOG_LEVELS.Info)
if bootloader == 'systemd-bootctl':
# TODO: Ideally we would want to check if another config