From 5afe426c61c9445978cb71e41ffe9b6b95e7d3e6 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Wed, 10 Aug 2022 07:38:34 -0700 Subject: [PATCH] Expand version matching Expand kernel version match for future 10.y.z numbering. --- boot-qemu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot-qemu.py b/boot-qemu.py index e8ce4a2..e3cbc04 100755 --- a/boot-qemu.py +++ b/boot-qemu.py @@ -327,7 +327,7 @@ def get_linux_ver_code(decomp_cmd): linux_version = None for line in strings.stdout.decode("UTF-8").split("\n"): - if re.search(r"Linux version \d\.\d+\.\d+", line): + if re.search(r"Linux version \d+\.\d+\.\d+", line): # "Linux version x.y.z- ..." -> "x.y.z-" -> "x.y.z" -> ['x', 'y', 'z'] linux_version = line.split(" ")[2].split("-")[0].split(".") break