summaryrefslogtreecommitdiffstats
path: root/packaging/check-kernel-config.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:08 +0000
commit81581f9719bc56f01d5aa08952671d65fda9867a (patch)
tree0f5c6b6138bf169c23c9d24b1fc0a3521385cb18 /packaging/check-kernel-config.sh
parentReleasing debian version 1.38.1-1. (diff)
downloadnetdata-81581f9719bc56f01d5aa08952671d65fda9867a.tar.xz
netdata-81581f9719bc56f01d5aa08952671d65fda9867a.zip
Merging upstream version 1.39.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/check-kernel-config.sh')
-rwxr-xr-xpackaging/check-kernel-config.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/packaging/check-kernel-config.sh b/packaging/check-kernel-config.sh
index ded322577..515259c13 100755
--- a/packaging/check-kernel-config.sh
+++ b/packaging/check-kernel-config.sh
@@ -51,15 +51,18 @@ fi
if [ -n "${CONFIG_PATH}" ]; then
GREP='grep'
+ CAT='cat'
if echo "${CONFIG_PATH}" | grep -q '.gz'; then
- GREP='zgrep'
+ CAT='zcat'
fi
REQUIRED_CONFIG="KPROBES KPROBES_ON_FTRACE HAVE_KPROBES BPF BPF_SYSCALL BPF_JIT"
for required_config in ${REQUIRED_CONFIG}; do
- if ! "${GREP}" -q "CONFIG_${required_config}=y" "${CONFIG_PATH}"; then
+ # Fix issue https://github.com/netdata/netdata/issues/14668
+ # if ! "${GREP}" -q "CONFIG_${required_config}=y" "${CONFIG_PATH}"; then
+ if ! { "${CAT}" "${CONFIG_PATH}" | "${GREP}" -q "CONFIG_${required_config}=y" >&2 >/dev/null; } ;then
echo >&2 " Missing Kernel Config: ${required_config}"
exit 1
fi