support older rhel distros in falco-driver-loader

Tested on RHEL 6

Signed-off-by: gentooise <andrea.genuise@ibm.com>
This commit is contained in:
gentooise 2022-12-06 17:17:42 +01:00 committed by poiana
parent 1b227cf90b
commit 70dfdb2e75

View File

@ -113,6 +113,9 @@ get_target_id() {
elif [ -f "${HOST_ROOT}/etc/centos-release" ]; then elif [ -f "${HOST_ROOT}/etc/centos-release" ]; then
# Older CentOS distros # Older CentOS distros
OS_ID=centos OS_ID=centos
elif [ -f "${HOST_ROOT}/etc/redhat-release" ]; then
# Older RHEL distros
OS_ID=rhel
else else
return 1 return 1
fi fi