Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
authorWerner Llácer <wllacer@gmail.com>2022-02-28 15:02:39 +0100
committerGitHub <noreply@github.com>2022-02-28 15:02:39 +0100
commitf06aabb4d4a50d3a8ab7c07bef8390f72b091293 (patch)
tree7b079611baeb58bdf0feb9b78a009ef0ee20623e /archinstall/__init__.py
parent391699497d0c15e7eb6a63a1369209f42f311b2c (diff)
enhacements to the menu infraestructure (#978)
* Correct definition of btrfs standard layout * Solve issue #936 * make ask_for_a_timezone as synonym to ask_timezone * Some refining in GeneralMenu secret is now a general function * Revert "Some refining in GeneralMenu" This reverts commit e6e131cb19795e0ddc169e897ae4df57a1c7f9fb. * Activate load of preset values in GeneralMenu Changed all select_functions definitions to the need of passing the preset value Corrected problems at ask_to_configure_network, and management of preset values added * minor glitches in menu processing, plus flake8 complains * Changes to ask_to_configure_network following @svartkanin code * select_language adapted to preset value. changes to the infraestructure to solve bugs * functions adapted for preset values * select_mirror_regions * select_locale_lang * select_locale_enc * ask_for_swap * Updated to preset values * ask_for_bootloader Won't use it * set_root_password() * Updated to preset values * ask_for_audio_selection * select_kernel * ask_for_a_timezone * Updated to use preset values * select_ntp * ask_ntp * ask_for_swap flake8 complains * Adapted to preset values * ask_additional_packages_to_install (from svartkanin) * ask_to_configure_network (adapted from svartkanin version) * Updated to preset values * ask_hostname * select_additional_repositories * bug in nic conversion _select_harddrives adapted to preset_menu
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index 9afefa0e..cb95028b 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -204,7 +204,7 @@ def load_config():
if arguments.get('servers', None) is not None:
storage['_selected_servers'] = arguments.get('servers', None)
if nic_config := arguments.get('nic', {}):
- if nic_config.get('nic', '') == 'Copy ISO network configuration to installation':
+ if isinstance(nic_config,str) or nic_config.get('nic', '') == 'Copy ISO network configuration to installation':
arguments['nic'] = {'type': 'iso_config'}
elif 'NetworkManager' in nic_config:
arguments['nic'] = {'type': 'network_manager', 'NetworkManager': True}