Added a failsafe for kernels argument to be defaulted to linux, since 'None' could technically end up here.

This commit is contained in:
Anton Hvornum 2021-04-27 12:39:13 +02:00
parent b6cd5835f1
commit 2762144e32
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ def perform_installation(mountpoint):
Only requirement is that the block devices are
formatted and setup prior to entering this function.
"""
with archinstall.Installer(mountpoint, kernels=archinstall.arguments['kernels']) as installation:
with archinstall.Installer(mountpoint, kernels=archinstall.arguments.get('kernels', 'linux')) as installation:
## if len(mirrors):
# Certain services might be running that affects the system during installation.
# Currently, only one such service is "reflector.service" which updates /etc/pacman.d/mirrorlist