diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-02-25 11:29:54 +0000 |
|---|---|---|
| committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-02-25 11:32:05 +0000 |
| commit | 71fd04239a3fe0db5218feb77c7e517f973ac9f0 (patch) | |
| tree | 10bd9ccfbc48e58be7618f65af37367d5e6cb17c /data/templates | |
| parent | 7fcca39afcafc9d99a58abc898460c975a5cdd34 (diff) | |
| download | vyos-1x-71fd04239a3fe0db5218feb77c7e517f973ac9f0.tar.gz vyos-1x-71fd04239a3fe0db5218feb77c7e517f973ac9f0.zip | |
T8120: Fix grub for ARM use consistent string comparison operator
Replace single '=' with '==' in GRUB shell conditionals for
string comparisons
Diffstat (limited to 'data/templates')
| -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" |
