Skip to content

Commit

Permalink
Load .ko.xz module on hosts using xz compression
Browse files Browse the repository at this point in the history
  • Loading branch information
bwolmarans committed Aug 10, 2018
1 parent 6956082 commit ba9fac6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sysdig-probe-loader
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,19 @@ load_kernel_probe() {
if insmod "/var/lib/dkms/${PACKAGE_NAME}/${SYSDIG_VERSION}/${KERNEL_RELEASE}/${ARCH}/module/${PROBE_NAME}.ko" > /dev/null 2>&1; then
echo "${PROBE_NAME} found and loaded in dkms"
exit 0
elif insmod "/var/lib/dkms/${PACKAGE_NAME}/${SYSDIG_VERSION}/${KERNEL_RELEASE}/${ARCH}/module/${PROBE_NAME}.ko.xz" > /dev/null 2>&1; then
echo "${PROBE_NAME} found and loaded in dkms (xz)"
exit 0
else
echo "* Unable to insmod"
fi
else
DKMS_LOG="/var/lib/dkms/${PACKAGE_NAME}/${SYSDIG_VERSION}/build/make.log"
if [ -f "${DKMS_LOG}" ]; then
echo "* Running dkms build failed, dumping ${DKMS_LOG}"
cat "${DKMS_LOG}"
else
echo "* Running dkms build failed, couldn't find ${DKMS_LOG}"
fi
fi
fi
Expand Down

0 comments on commit ba9fac6

Please sign in to comment.