From 7e75adc13e1c183666e028338ee28aeb1051bf3b Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 4 May 2023 12:16:49 +0200 Subject: [PATCH] new(scripts): updated falco-driver-loader to properly support talos. Signed-off-by: Federico Di Pierro --- scripts/falco-driver-loader | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index af4b932e172..c6e365fef00 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -200,6 +200,11 @@ get_target_id() { # version_id has been sourced from os-release. Build a kernel version like: 1_1.11.0-aws KERNEL_VERSION="1_${VERSION_ID}-${VARIANT_ID_CUT}" ;; + ("talos") + TARGET_ID=$(echo "${OS_ID}" | tr '[:upper:]' '[:lower:]') + # version_id has been sourced from os-release. Build a kernel version like: 1_1.4.1 + KERNEL_VERSION="1_${VERSION_ID}" + ;; (*) TARGET_ID=$(echo "${OS_ID}" | tr '[:upper:]' '[:lower:]') ;;