Skip to content

Commit c46366c

Browse files
authored
fix(node): grub syntax error (#5211)
NODE-1603 We encountered a case where a node was supposed to be rolling back from A to B, but it instead "rolled back" from A to A. This PR resolves the syntax error causing this.
1 parent dd1d37c commit c46366c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ic-os/bootloader/grub.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ elif [ "${boot_cycle}" = "first_boot" ]; then
4747
save_env boot_alternative boot_cycle
4848
BOOT_STATE=upgrade
4949
elif [ "${boot_cycle}" = "failsafe_check" ]; then
50-
if [ "${boot_alternative}" = "A"]; then
50+
if [ "${boot_alternative}" = "A" ]; then
5151
set boot_alternative=B
5252
else
5353
set boot_alternative=A

ic-os/hostos/grub.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ elif [ "${boot_cycle}" = "first_boot" ]; then
4747
save_env boot_alternative boot_cycle
4848
BOOT_STATE=upgrade
4949
elif [ "${boot_cycle}" = "failsafe_check" ]; then
50-
if [ "${boot_alternative}" = "A"]; then
50+
if [ "${boot_alternative}" = "A" ]; then
5151
set boot_alternative=B
5252
else
5353
set boot_alternative=A

0 commit comments

Comments
 (0)