From 0d73f9624df52f259c1037751ecb878cc99bd09e Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Fri, 14 Apr 2023 11:20:22 +0200 Subject: [PATCH] update(scripts): updated falco-driver-loader to support al2022 and al2023. Signed-off-by: Federico Di Pierro --- scripts/falco-driver-loader | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index 4a1d496a..a13e9041 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -128,11 +128,20 @@ get_target_id() { case "${OS_ID}" in ("amzn") - if [[ $VERSION_ID == "2" ]]; then + case "${VERSION_ID}" in + ("2") TARGET_ID="amazonlinux2" - else + ;; + ("2022") + TARGET_ID="amazonlinux2022" + ;; + ("2023") + TARGET_ID="amazonlinux2023" + ;; + (*) TARGET_ID="amazonlinux" - fi + ;; + esac ;; ("ubuntu") # Extract the flavor from the kernelrelease