log diffrent values when in bios mode

This commit is contained in:
advaithm 2021-04-28 07:48:44 +05:30
parent 7922d82639
commit db7632f55e
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
1 changed files with 4 additions and 2 deletions

View File

@ -366,8 +366,10 @@ class Installer():
boot_partition = partition
elif partition.mountpoint == self.target:
root_partition = partition
self.log(f'Adding bootloader {bootloader} to {boot_partition}', level=logging.INFO)
if hasUEFI():
self.log(f'Adding bootloader {bootloader} to {boot_partition}', level=logging.INFO)
else:
self.log(f'Adding bootloader {bootloader} to {root_partition}', level=logging.INFO)
if bootloader == 'systemd-bootctl':
if not hasUEFI():