diff options
author | canoziia <canoziia@qq.com> | 2025-04-25 11:39:03 +0800 |
---|---|---|
committer | canoziia <canoziia@qq.com> | 2025-04-25 11:39:03 +0800 |
commit | 1deea4067298034a8f7ef803173b7e2dc680a9cb (patch) | |
tree | f6b79fdcfb87e306a7e53ddbea451adea0eaaa24 /src | |
parent | e6909ffe8fc474e181e9b711f1b08974e152a0a7 (diff) | |
download | vyos-1x-1deea4067298034a8f7ef803173b7e2dc680a9cb.tar.gz vyos-1x-1deea4067298034a8f7ef803173b7e2dc680a9cb.zip |
image_installer: T7394: add system image raise "Error: argument of type 'NoneType' is not iterable"
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/image_installer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py index 2660309a5..5d52aabb9 100755 --- a/src/op_mode/image_installer.py +++ b/src/op_mode/image_installer.py @@ -491,6 +491,8 @@ def get_cli_kernel_options(config_file: str) -> list: config = ConfigTree(read_file(config_file)) config_dict = loads(config.to_json()) kernel_options = dict_search('system.option.kernel', config_dict) + if kernel_options is None: + kernel_options = {} cmdline_options = [] # XXX: This code path and if statements must be kept in sync with the Kernel |