Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-05-31 12:26:49 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-05-31 12:26:49 +0200
commit62c22f78b17621a70ed5839a6c3ea728cc03a791 (patch)
treec63e45c2f2d4f89f775acb271fcc2a2ada927ef0 /archinstall
parent7b1bb4af97e9a1bf1d14b0f4e60e8a87c043e832 (diff)
Moved return logic to not abort the iteration of kernels.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index fc6bb821..b752e86e 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -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)