archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Manual network configuration not parsed correctly

Open asininemonkey opened this issue 3 years ago • 2 comments

Using the new 2.5.0 installer I've exported the network configuration as follows:

    "nic": [
        {
            "dhcp": true,
            "dns": null,
            "gateway": null,
            "iface": "enp2s0",
            "ip": null,
            "type": "manual"
        }
    ],

When passing this back to archinstall, I get the following error:

Traceback (most recent call last):
  File "/usr/bin/archinstall", line 5, in <module>
    from archinstall import run_as_a_module
  File "/usr/lib/python3.10/site-packages/archinstall/__init__.py", line 254, in <module>
    post_process_arguments(arguments)
  File "/usr/lib/python3.10/site-packages/archinstall/__init__.py", line 246, in post_process_arguments
    load_config()
  File "/usr/lib/python3.10/site-packages/archinstall/__init__.py", line 210, in load_config
    handler.parse_arguments(arguments.get('nic'))
  File "/usr/lib/python3.10/site-packages/archinstall/lib/models/network_configuration.py", line 157, in parse_arguments
    nic_type = config.get('type', None)
AttributeError: 'list' object has no attribute 'get'

asininemonkey avatar Jun 21 '22 14:06 asininemonkey

+1 to this issue image

Exported example files for testing (randomised creds): user_configuration.txt user_credentials.txt

version installed: archinstall-2.5.0-1-any

steps to repoduce:

1, copy configuration and credentials to installation media possibly use vmware shared folder and copy from /mnt/hgfs/<folder>
2, archinstall --config user_configuration.json --creds user_credentials.json

braddevans avatar Jun 21 '22 19:06 braddevans

@asininemonkey @braddevans this should be fixed in the master branch and hopefully go into the next release :)

svartkanin avatar Jun 21 '22 22:06 svartkanin

@Torxed can close this as its fixed

svartkanin avatar Sep 04 '22 11:09 svartkanin