@cryptotaxi247 / netdata-1 / commits / 7ff315810

Fix SHA256 handling in eBPF bundling code. (#9546)

This makes it compatible both with busybox and older GNU userspaces.

Austin S. Hemmelgarn committed Jul 15, 2020 at 21:38 UTC 7ff315810e1d2c5871c4e87049687852b2cee7ee
1 file changed +1 -1
packaging/bundle-ebpf.sh
+1 -1
@@ -8,7 +8,7 @@ EBPF_TARBALL="netdata-kernel-collector-glibc-${EBPF_VERSION}.tar.xz"
8
9 mkdir -p "${SRCDIR}/tmp/ebpf"
10 curl -sSL --connect-timeout 10 --retry 3 "https://github.com/netdata/kernel-collector/releases/download/${EBPF_VERSION}/${EBPF_TARBALL}" > "${EBPF_TARBALL}" || exit 1
11 -sha256sum -c --ignore-missing "${SRCDIR}/packaging/ebpf.checksums" || exit 1
11 +grep "${EBPF_TARBALL}" "${SRCDIR}/packaging/ebpf.checksums" | sha256sum -c - || exit 1
12 tar -xaf "${EBPF_TARBALL}" -C "${SRCDIR}/tmp/ebpf" || exit 1
13 # shellcheck disable=SC2046
14 cp -a $(find "${SRCDIR}/tmp/ebpf" -mindepth 1 -maxdepth 1) "${PLUGINDIR}"