update(docker): introduce SKIP_MODULE_LOAD env variable

Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato
2019-11-08 11:31:13 +00:00
committed by Lorenzo Fontana
parent 3e9ebfb354
commit 514d8bacc3
5 changed files with 13 additions and 20 deletions

View File

@@ -18,16 +18,14 @@
# set -e
# Set the SYSDIG_SKIP_LOAD variable to skip loading the sysdig kernel module
# Set the SKIP_MODULE_LOAD variable to skip loading the kernel module
if [[ -z "${SYSDIG_SKIP_LOAD}" ]]; then
if [[ -z "${SKIP_MODULE_LOAD}" ]]; then
echo "* Setting up /usr/src links from host"
for i in "$HOST_ROOT/usr/src"/*
do
if [ -f "$i" ]; then
ln -s "$i" "/usr/src/$i"
fi
done
/usr/bin/falco-probe-loader

View File

@@ -18,16 +18,14 @@
# set -e
# Set the SYSDIG_SKIP_LOAD variable to skip loading the sysdig kernel module
# Set the SKIP_MODULE_LOAD variable to skip loading the kernel module
if [[ -z "${SYSDIG_SKIP_LOAD}" ]]; then
if [[ -z "${SKIP_MODULE_LOAD}" ]]; then
echo "* Setting up /usr/src links from host"
for i in "$HOST_ROOT/usr/src"/*
do
if [ -f "$i" ]; then
ln -s "$i" "/usr/src/$i"
fi
done
/usr/bin/falco-probe-loader

View File

@@ -18,16 +18,14 @@
# set -e
# Set the SYSDIG_SKIP_LOAD variable to skip loading the sysdig kernel module
# Set the SKIP_MODULE_LOAD variable to skip loading the sysdig kernel module
if [[ -z "${SYSDIG_SKIP_LOAD}" ]]; then
if [[ -z "${SKIP_MODULE_LOAD}" ]]; then
echo "* Setting up /usr/src links from host"
for i in "$HOST_ROOT/usr/src"/*
do
if [ -f "$i" ]; then
ln -s "$i" "/usr/src/$i"
fi
done
/usr/bin/falco-probe-loader

View File

@@ -18,16 +18,14 @@
# set -e
# Set the SYSDIG_SKIP_LOAD variable to skip loading the sysdig kernel module
# Set the SKIP_MODULE_LOAD variable to skip loading the kernel module
if [[ -z "${SYSDIG_SKIP_LOAD}" ]]; then
if [[ -z "${SKIP_MODULE_LOAD}" ]]; then
echo "* Setting up /usr/src links from host"
for i in "$HOST_ROOT/usr/src"/*
do
if [ -f "$i" ]; then
ln -s "$i" "/usr/src/$i"
fi
done
/usr/bin/falco-probe-loader

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
#
# Copyright (C) 2019 The Falco Authors.
#