From 2ffc2d36af8f9982529c57b07cff6386e24f7d52 Mon Sep 17 00:00:00 2001 From: Aiden Isik Date: Mon, 5 Oct 2026 19:21:58 +0100 Subject: [PATCH] Fix newer linux kernels being detected as invalid platforms --- sbsv2/raptor/python/raptor_data.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sbsv2/raptor/python/raptor_data.py b/sbsv2/raptor/python/raptor_data.py index 434bcb5..3928c5a 100644 --- a/sbsv2/raptor/python/raptor_data.py +++ b/sbsv2/raptor/python/raptor_data.py @@ -44,6 +44,11 @@ class HostPlatform(object): hostplatforms = ["win32", "win64", "linux2"] hostplatform = sys.platform + # Fixup any platform starting with "linux" to "linux2" + # Fixes errors with older python on newer kernels (e.g. "linux7") + if hostplatform.startswith("linux"): + hostplatform = "linux2" + @classmethod def IsKnown(cls, platformpattern): "Does the parameter match the name of a known platform " -- 2.54.0