mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-25 12:19:56 +00:00
new(scripts): improved falco-driver-loader supporting any ubuntu flavor.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
committed by
poiana
parent
98b8e390a1
commit
bd865450ef
@@ -129,8 +129,13 @@ get_target_id() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
("ubuntu")
|
("ubuntu")
|
||||||
if [[ $KERNEL_RELEASE == *"aws"* ]]; then
|
# Extract the flavor from the kernelrelease
|
||||||
TARGET_ID="ubuntu-aws"
|
# Examples:
|
||||||
|
# 5.0.0-1028-aws-5.0 -> ubuntu-aws-5.0
|
||||||
|
# 5.15.0-1009-aws -> ubuntu-aws
|
||||||
|
if [[ $KERNEL_RELEASE =~ -([a-zA-Z]+)(-.*)?$ ]];
|
||||||
|
then
|
||||||
|
TARGET_ID="ubuntu-${BASH_REMATCH[1]}${BASH_REMATCH[2]}"
|
||||||
else
|
else
|
||||||
TARGET_ID="ubuntu-generic"
|
TARGET_ID="ubuntu-generic"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user