From ef5cbac118ef65abbd5d74ed2257cea88d9ef580 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 8 Jul 2020 14:31:01 +0000 Subject: Fixed an issue where the boot loader tried to point the / boot towards the /boot partition in the loader entry. --- archinstall/lib/installer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archinstall/lib') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index d3e6c381..dda69495 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -41,10 +41,10 @@ class Installer(): def minimal_installation(self): return self.pacstrap('base base-devel linux linux-firmware btrfs-progs efibootmgr nano wpa_supplicant dialog'.split(' ')) - def add_bootloader(self, partition): - log(f'Adding bootloader to {partition}') + def add_bootloader(self, boot_partition): + log(f'Adding bootloader to {boot_partition}') os.makedirs(f'{self.mountpoint}/boot', exist_ok=True) - partition.mount(f'{self.mountpoint}/boot') + boot_partition.mount(f'{self.mountpoint}/boot') o = b''.join(sys_command(f'/usr/bin/arch-chroot {self.mountpoint} bootctl --no-variables --path=/boot install')) with open(f'{self.mountpoint}/boot/loader/loader.conf', 'w') as loader: @@ -65,7 +65,7 @@ class Installer(): for root, folders, uids in os.walk('/dev/disk/by-uuid'): for uid in uids: real_path = os.path.realpath(os.path.join(root, uid)) - if not os.path.basename(real_path) == os.path.basename(partition.path): continue + if not os.path.basename(real_path) == os.path.basename(self.partition.path): continue entry.write(f'options cryptdevice=UUID={uid}:luksdev root=/dev/mapper/luksdev rw intel_pstate=no_hwp\n') return True -- cgit v1.2.3-70-g09d2