diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/grub/grub_common.j2 | 2 | ||||
| -rw-r--r-- | data/templates/grub/grub_options.j2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/grub/grub_common.j2 b/data/templates/grub/grub_common.j2 index 86fdbdf60..c4c4adf10 100644 --- a/data/templates/grub/grub_common.j2 +++ b/data/templates/grub/grub_common.j2 @@ -7,7 +7,7 @@ fi # create and activate serial console function setup_serial { # initialize the first serial port by default - if [ "${console_type}" = "ttyS" -o "${console_type}" = "ttyAMA" ]; then + if [ "${console_type}" == "ttyS" -o "${console_type}" == "ttyAMA" ]; then if [ "${console_num}" == "0" ]; then serial --unit=0 --speed=${console_speed} else diff --git a/data/templates/grub/grub_options.j2 b/data/templates/grub/grub_options.j2 index 0f2f15caf..43099cc51 100644 --- a/data/templates/grub/grub_options.j2 +++ b/data/templates/grub/grub_options.j2 @@ -28,7 +28,7 @@ submenu "Boot options" { configfile ${prefix}/grub.cfg.d/*vyos-menu*.cfg } menuentry "ttyS (serial)" { - if [ "${grub_cpu}" = "arm64" ]; then + if [ "${grub_cpu}" == "arm64" ]; then set serial_console="ttyAMA" else set serial_console="ttyS" |
