Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-04-27 12:39:13 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-04-27 12:39:13 +0200
commit2762144e32413ee8d6df433d31bc7b096d11e700 (patch)
tree9eea4eee861f252a154a95f4579d604021bfcaae /examples
parentb6cd5835f19e15f41a41ac8172e5dabb3cb7fa39 (diff)
Added a failsafe for kernels argument to be defaulted to linux, since 'None' could technically end up here.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 52ee07a6..6d8155c7 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -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