Skip to content

Commit

Permalink
update(scripts): updated falco-driver-loader to support al2022 and al…
Browse files Browse the repository at this point in the history
…2023.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Apr 14, 2023
1 parent 0f1f413 commit 0d73f96
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions scripts/falco-driver-loader
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d73f96

Please sign in to comment.