Moved return logic to not abort the iteration of kernels.

This commit is contained in:
Anton Hvornum 2021-05-31 12:26:49 +02:00
parent 7b1bb4af97
commit 62c22f78b1
1 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,6 @@ class Installer:
entry.write(f'options root=PARTUUID={root_partition.uuid} rw intel_pstate=no_hwp {" ".join(self.KERNEL_PARAMS)}\n')
self.helper_flags['bootloader'] = bootloader
return True
elif bootloader == "grub-install":
self.pacstrap('grub')
@ -509,10 +508,11 @@ class Installer:
o = b''.join(SysCommand(f'/usr/bin/arch-chroot {self.target} grub-install --target=i386-pc /dev/{root_device}'))
SysCommand('/usr/bin/arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg')
self.helper_flags['bootloader'] = True
return True
else:
raise RequirementError(f"Unknown (or not yet implemented) bootloader requested: {bootloader}")
return True
def add_additional_packages(self, *packages):
return self.pacstrap(*packages)