Skip to content

Commit c5049ac

Browse files
jeromesun14lguohan
authored andcommitted
sonic_installer onie get_next_image() may return wrong index due to wrong re search text (#270)
1 parent be4f03e commit c5049ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonic_installer/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_next_image():
105105
if m:
106106
next_image_index = int(m.group(1))
107107
else:
108-
m = re.search("saved_entry(\d+)", grubenv)
108+
m = re.search("saved_entry=(\d+)", grubenv)
109109
if m:
110110
next_image_index = int(m.group(1))
111111
else:

0 commit comments

Comments
 (0)