diff options
author | John Estabrook <jestabro@vyos.io> | 2024-01-16 23:52:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 23:52:13 -0600 |
commit | 31d3d7263ee3082bb7f7dd722086e2ce5c892a03 (patch) | |
tree | 62c525749ed7beb7e89a59a265893edfcb055a11 /data/templates/grub/grub_common.j2 | |
parent | 6c39a9cb6df6bb56c02583f82d68edc8ef17241d (diff) | |
parent | 2afd5e5575a42bee4483e093e9611fa3363c8adc (diff) | |
download | vyos-1x-31d3d7263ee3082bb7f7dd722086e2ce5c892a03.tar.gz vyos-1x-31d3d7263ee3082bb7f7dd722086e2ce5c892a03.zip |
Merge pull request #2840 from vyos/mergify/bp/sagitta/pr-2818
image-tools: T5923: update system_console.py for new GRUB file structure (backport #2818)
Diffstat (limited to 'data/templates/grub/grub_common.j2')
-rw-r--r-- | data/templates/grub/grub_common.j2 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/grub/grub_common.j2 b/data/templates/grub/grub_common.j2 index 29c2ab879..5e9b95cc0 100644 --- a/data/templates/grub/grub_common.j2 +++ b/data/templates/grub/grub_common.j2 @@ -8,7 +8,11 @@ fi function setup_serial { # initialize the first serial port by default if [ "${console_type}" == "ttyS" ]; then - serial --unit=${console_num} --speed=${console_speed} + if [ "${console_num}" == "0" ]; then + serial --unit=0 --speed=${console_speed} + else + serial --unit=${console_num} --speed=115200 + fi else serial --unit=0 --speed=${console_speed} fi |