Skip to content

Commit

Permalink
[armhf][sonic-installer] Fix the issue of sonic-installer list after …
Browse files Browse the repository at this point in the history
…the set-default and cleanup

Signed-off-by: mlok <marty.lok@nokia.com>
  • Loading branch information
mlok-nokia committed Nov 6, 2022
1 parent 4a3d49d commit b85cdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_installer/bootloader/uboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_next_image(self):
proc = subprocess.Popen("/usr/bin/fw_printenv -n boot_next", shell=True, text=True, stdout=subprocess.PIPE)
(out, _) = proc.communicate()
image = out.rstrip()
if "sonic_image_2" in image:
if "sonic_image_2" in image and len(images) == 2:
next_image_index = 1
else:
next_image_index = 0
Expand Down

0 comments on commit b85cdb0

Please sign in to comment.