Skip to content

Commit

Permalink
[fwupdate]fix issue that setting next_entry=ONIE breaks the sonic_ins…
Browse files Browse the repository at this point in the history
…taller via using the newly introduced onie_entry
  • Loading branch information
Stephen Sun committed Jan 17, 2020
1 parent 9477140 commit 08d885a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ def install_firmware(self, image_path):
print("ERROR: Installing BIOS failed due to {}".format(repr(e)))
return False

print("INFO: Reboot via \"/sbin/reboot\" is required to finish BIOS installation.")
print("INFO: Please don't try installing a new sonic image before BIOS installation finishing")
print("INFO: Reboot is required to finish BIOS installation.")
return True


Expand Down
2 changes: 1 addition & 1 deletion platform/mellanox/onie-fw-update
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ change_grub_boot_order()
find_onie_menuentry
rc=$?
if [ $rc -eq 0 ]; then
grub-reboot --boot-directory=$os_boot $onie_entry
grub-editenv $os_boot/grub/grubenv set onie_entry=ONIE
else
echo "ERROR: ONIE entry wasn't found in grub config"
return 1
Expand Down

0 comments on commit 08d885a

Please sign in to comment.