Removed redundant boot-partition retrieval.

This commit is contained in:
Anton Hvornum 2021-11-16 14:41:00 +00:00
parent af514cf65e
commit c70b360879
2 changed files with 4 additions and 1 deletions

4
archinstall/1 Normal file
View File

@ -0,0 +1,4 @@
grep: lib/__pycache__/disk.cpython-39.pyc: binary file matches
grep: lib/__pycache__/installer.cpython-39.pyc: binary file matches
grep: lib/__pycache__/user_interaction.cpython-39.pyc: binary file matches
grep: lib/disk/__pycache__/helpers.cpython-39.pyc: binary file matches

View File

@ -622,7 +622,6 @@ class Installer:
self.helper_flags['bootloader'] = True
return True
else:
boot_partition = find_partition_by_mountpoint(self.partitions, relative_mountpoint=f"/boot")
SysCommand(f'/usr/bin/arch-chroot {self.target} grub-install --target=i386-pc --recheck {boot_partition.path}')
SysCommand(f'/usr/bin/arch-chroot {self.target} grub-mkconfig -o /boot/grub/grub.cfg')
self.helper_flags['bootloader'] = True