From 9ad56f3462f8de25e8cae8905a5b04e228aef071 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 11 Nov 2020 20:28:51 +0000 Subject: Created a default package entry in the _guided storage. --- examples/guided.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/guided.py b/examples/guided.py index f1dff059..9c5f083e 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -52,7 +52,7 @@ def perform_installation(device, boot_partition, language, mirrors): if archinstall.storage['_guided']['network']: installation.configure_nic(**archinstall.storage['_guided']['network']) - if len(archinstall.storage['_guided']['packages']) and archinstall.storage['_guided']['packages'][0] != '': + if archinstall.storage['_guided']['packages'] and archinstall.storage['_guided']['packages'][0] != '': installation.add_additional_packages(archinstall.storage['_guided']['packages']) if 'profile' in archinstall.storage['_guided'] and len(profile := archinstall.storage['_guided']['profile']['path'].strip()): @@ -170,6 +170,7 @@ while 1: break # Additional packages (with some light weight error handling for invalid package names) +archinstall.storage['_guided']['packages'] = None while 1: packages = [package for package in input('Additional packages aside from base (space separated): ').split(' ') if len(package)] -- cgit v1.2.3-70-g09d2