summaryrefslogtreecommitdiff
path: root/python/vyos/system/grub.py
diff options
context:
space:
mode:
authorTrae Santiago <tsantiago@us.ibm.com>2023-12-14 06:07:21 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-12-16 20:37:11 -0600
commit091a4f0f80335d9367b09c48fa25c78eeba25b46 (patch)
tree592afd6b51f8914045dbba185d847fa9dfe848e1 /python/vyos/system/grub.py
parentde9ec7bd5d33e2f3a6faa5029eed7c4f811e87d1 (diff)
downloadvyos-1x-091a4f0f80335d9367b09c48fa25c78eeba25b46.tar.gz
vyos-1x-091a4f0f80335d9367b09c48fa25c78eeba25b46.zip
T5827: moved sys image sort to grub version_list
(cherry picked from commit d01aba1f5055cdaa43c8429a2c13580679ec12f7)
Diffstat (limited to 'python/vyos/system/grub.py')
-rw-r--r--python/vyos/system/grub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/system/grub.py b/python/vyos/system/grub.py
index 0ac16af9a..4ebf229a0 100644
--- a/python/vyos/system/grub.py
+++ b/python/vyos/system/grub.py
@@ -138,6 +138,8 @@ def version_list(root_dir: str = '') -> list[str]:
versions_list: list[str] = []
for file in versions_files:
versions_list.append(file.stem)
+ versions_list.sort()
+
return versions_list