diff --git a/sonic_installer/bootloader/uboot.py b/sonic_installer/bootloader/uboot.py index 47252dd..cb8d3c2 100644 --- a/sonic_installer/bootloader/uboot.py +++ b/sonic_installer/bootloader/uboot.py @@ -24,12 +24,12 @@ def get_installed_images(self): proc = subprocess.Popen("/usr/bin/fw_printenv -n sonic_version_1", shell=True, stdout=subprocess.PIPE) (out, _) = proc.communicate() image = out.rstrip() - if IMAGE_PREFIX in image: + if IMAGE_PREFIX in image or "NONE" in image: images.append(image) proc = subprocess.Popen("/usr/bin/fw_printenv -n sonic_version_2", shell=True, stdout=subprocess.PIPE) (out, _) = proc.communicate() image = out.rstrip() - if IMAGE_PREFIX in image: + if IMAGE_PREFIX in image or "NONE" in image: images.append(image) return images