Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[armhf][sonic-installer] [cherry-pick to branch 202012] Fix the issue…
… of sonic-installer list after set-default and cleanup (#2479) (#2497) What I did sonic-installer list will throw a exception when install images as the following step (onie-nos-install ) Install first image A (sonic-installer) Install Image B and not reboot it (sonic-installer) set default to back to Image A sudo sonic-installer cleanup At this time, executing sonic-installer list will throw exception How I did it Modify the get_next_image() in uboot.py to check and return index 1 when the images list contains two elements. This PR should work with sonic-net/sonic-buildimage#12609 This PR is needed by branch 202012 and 2022o5 Signed-off-by: mlok <marty.lok@nokia.com> (cherry picked from commit d1ca2cd)
- Loading branch information