update(scripts): updated falco-driver-loader to support al2022 and al2023.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2023-04-14 11:20:22 +02:00 committed by poiana
parent 0f1f413221
commit 0d73f9624d

View File

@ -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