summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2020-02-26 20:19:09 +0000
committerGitHub <noreply@github.com>2020-02-27 06:19:09 +1000
commitc2246ff2325fdb3b7dbccbd75252d08c7fbb116f (patch)
treee4f0e9b6e669d0743fb5225d2178e462867deab3 /netdata-installer.sh
parentf84191b9d6b4766aa3abccc03e48c128a70dd9c1 (diff)
Add support to new kernels (#8192)
* netdata_kernels_extensions: Add support to new kernels This commit brings the missing kernels for netdata-installer.sh * netdata_kernels_extensions: Adjust kernel versions * netdata_kernels_extensions: Missing bar There was a missing bar in the ln command
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh27
1 files changed, 18 insertions, 9 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index 387b7bc604..5d489bfca1 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -1111,20 +1111,29 @@ get_compatible_kernel_for_ebpf() {
# XXX: Logic taken from Slack discussion in #ebpf
# everything that has a version <= 4.14 can use the code built to 4.14
- # Continue the logic, everything that has a version <= 4.19 and >= 4.15 can use the code built to 4.19
+ # also all distributions that has a version <= 4.15.256 can use the code built to 4.15
+ # Continue the logic, everything that has a version < 4.19.102 and >= 4.15 can use the code built to 4.19
+ # Kernel 4.19 had a feature added in the version 4.19.102 that force us to break it in two, so version >= 4.19.102
+ # and smaller than < 5.0 runs with code built to 4.19.102
# Finally, everybody that is using 5.X can use what is compiled with 5.4
kpkg=
if [ "${kver}" -ge 005000000 ]; then
- echo >&2 " Using eBPF Kernel Package built against Linux 5.4"
- kpkg="5_4"
- elif [ "${kver}" -ge 004015000 ] && [ "${kver}" -le 004020017 ]; then
- echo >&2 " Using eBPF Kernel Package built against Linux 4.19"
- kpkg="4_19"
+ echo >&2 " Using eBPF Kernel Package built against Linux 5.4.20"
+ kpkg="5_4_20"
+ elif [ "${kver}" -ge 004019102 ] && [ "${kver}" -le 004020017 ]; then
+ echo >&2 " Using eBPF Kernel Package built against Linux 4.19.104"
+ kpkg="4_19_104"
+ elif [ "${kver}" -ge 004016000 ] && [ "${kver}" -le 004020017 ]; then
+ echo >&2 " Using eBPF Kernel Package built against Linux 4.19.98"
+ kpkg="4_19_98"
+ elif [ "${kver}" -ge 004015000 ] && [ "${kver}" -le 004015256 ]; then
+ echo >&2 " Using eBPF Kernel Package built against Linux 4.15.18"
+ kpkg="4_15_18"
elif [ "${kver}" -le 004014999 ]; then
- echo >&2 " Using eBPF Kernel Package built against Linux 4.14"
- kpkg="4_14"
+ echo >&2 " Using eBPF Kernel Package built against Linux 4.14.171"
+ kpkg="4_14_171"
else
echo >&2 " ERROR: Cannot detect a supported kernel on your system!"
return 1
@@ -1241,7 +1250,7 @@ install_ebpf() {
run cp -a -v "${tmp}/libnetdata_ebpf.so" "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d"
run cp -a -v "${tmp}"/pnetdata_ebpf_process.o "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d"
run cp -a -v "${tmp}"/rnetdata_ebpf_process.o "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d"
- run ln -v -f -s "${libdir}"/libbpf_kernel.so "${libdir}"libbpf_kernel.so.0
+ run ln -v -f -s "${libdir}"/libbpf_kernel.so "${libdir}"/libbpf_kernel.so.0
run ldconfig
echo >&2 "ePBF installation all done!"