summaryrefslogtreecommitdiff
path: root/data/templates/grub/grub_common.j2
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-01-16 22:54:20 +0000
committerGitHub <noreply@github.com>2024-01-16 22:54:20 +0000
commitbf08f0f2538b5068ff1a41b51dac832b04a7d4be (patch)
treec8b8babd8e5d812a0f323dd40c1b1689c4530dde /data/templates/grub/grub_common.j2
parent0249dc59b5adf095d9833cde42d8649ad299d717 (diff)
parent5ceaff2ef970cb9c567ac317bafbffca5b073f4a (diff)
downloadvyos-1x-bf08f0f2538b5068ff1a41b51dac832b04a7d4be.tar.gz
vyos-1x-bf08f0f2538b5068ff1a41b51dac832b04a7d4be.zip
Merge pull request #2818 from jestabro/serial-console-config-mode
image-tools: T5923: update system_console.py for new GRUB file structure
Diffstat (limited to 'data/templates/grub/grub_common.j2')
-rw-r--r--data/templates/grub/grub_common.j26
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