Skip to content

Commit

Permalink
[mellanox] Fail if FW upgrade fails during fast-reboot (sonic-net#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanblyschak authored and qiluo-msft committed Sep 3, 2018
1 parent dfb557c commit 8819b4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ then
mkdir -p "$FS_MOUNTPOINT"
mount -t squashfs "$NEXT_IMAGE_FS_PATH" "$FS_MOUNTPOINT"
/usr/bin/mlnx-fw-upgrade.sh "$FS_MOUNTPOINT/etc/mlnx/fw-SPC.mfa"
EXIT_CODE=$?
umount "$FS_MOUNTPOINT"
if [[ $EXIT_CODE != 0 ]]; then
echo "Failed to burn FW"
exit 1
fi
fi
fi

Expand Down

0 comments on commit 8819b4f

Please sign in to comment.