diff options
| author | John Estabrook <jestabro@vyos.io> | 2026-06-09 22:04:40 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2026-06-09 22:04:40 -0500 |
| commit | 931f280ae4d1b8ea6dd7109e3b8fc1e15622f0f3 (patch) | |
| tree | 728197fac3c5d608ee06284ee9c3da744bc04a1a /src | |
| parent | a6ad73d72ba8d5256ff77978e63c07143787eb44 (diff) | |
| download | vyos-1x-931f280ae4d1b8ea6dd7109e3b8fc1e15622f0f3.tar.gz vyos-1x-931f280ae4d1b8ea6dd7109e3b8fc1e15622f0f3.zip | |
T8976: explicitly remove 'kernel' device setting on choice of 'tty'
Diffstat (limited to 'src')
| -rwxr-xr-x | src/op_mode/image_installer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py index 07f69ccd5..9ac7718de 100755 --- a/src/op_mode/image_installer.py +++ b/src/op_mode/image_installer.py @@ -658,6 +658,10 @@ def configure_serial_console(config_file: str, console_type: str) -> None: # serial was defined by user. if console_type == 'S': config.set(base + [device, 'kernel']) + if console_type == 'K': + # remove any residual setting from flavor file image build + if config.exists(base + [device, 'kernel']): + config.delete(base + [device, 'kernel']) with open(config_file, 'w') as f: f.write(config.to_string()) |
