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:
authorAnton Hvornum <anton@hvornum.se>2021-04-09 13:06:47 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 13:06:47 +0200
commit56239d89b58a6ee7bc3d0c299833a8aa6635ae79 (patch)
tree6423b530f6599541a382002453ea410987a4fce4 /archinstall/lib/installer.py
parentfdcaeae6f2243ff401409cc869a4c02430aa89c3 (diff)
Fixed some log output logic for the boot partition.
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