summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-01-11 10:34:06 -0600
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-12 16:47:56 +0000
commitb676106dd0926dc72cd959836270e1ffb9f48918 (patch)
tree3fce5c53b3511c3a97c6af8e305db46fa1bd4e0e /src
parent387d4727d747306414cb26460e835b3d56e33da0 (diff)
downloadvyos-1x-b676106dd0926dc72cd959836270e1ffb9f48918.tar.gz
vyos-1x-b676106dd0926dc72cd959836270e1ffb9f48918.zip
image-tools: T5910: explicitly set transmission speed of serial console
GRUB defaults to 9600 in case of serial console; explicitly set to 115200. (cherry picked from commit 70122bef58eaa0084695f89c410992f8d7c1f9f6)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/image_installer.py1
-rw-r--r--src/system/grub_update.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index 5e2af2d97..b78029c24 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -91,6 +91,7 @@ DEFAULT_BOOT_VARS: dict[str, str] = {
'timeout': '5',
'console_type': 'tty',
'console_num': '0',
+ 'console_speed': '115200',
'bootmode': 'normal'
}
diff --git a/src/system/grub_update.py b/src/system/grub_update.py
index 3c851f0e0..4d5e0b6ae 100644
--- a/src/system/grub_update.py
+++ b/src/system/grub_update.py
@@ -68,7 +68,8 @@ if __name__ == '__main__':
'default': grub.gen_version_uuid(default_entry['version']),
'bootmode': default_entry['bootmode'],
'console_type': default_entry['console_type'],
- 'console_num': default_entry['console_num']
+ 'console_num': default_entry['console_num'],
+ 'console_speed': '115200'
}
vars.update(default_settings)