summaryrefslogtreecommitdiff
path: root/dev-debug/sysdig/files/0.38.1-scap-loader.patch
blob: 1f350948b37a4bcc6479472f62fb2ee30ce5a7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

Sanitize the scap loader script to not attempt driver downloads or compilation
by default, which would not work anyway as sysdig does not host prebuilt modules
for Gentoo.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>

--- sysdig-0.38.0/scripts/scap-driver-loader.in~ 2024-06-17 11:14:55.000000000 +0200
+++ sysdig-0.38.0/scripts/scap-driver-loader.in	2024-06-17 11:14:55.000000000 +0200
@@ -662,8 +662,8 @@ print_usage() {
 	echo "Options:"
 	echo "  --help         show brief help"
 	echo "  --clean        try to remove an already present driver installation"
-	echo "  --compile      try to compile the driver locally (default true)"
-	echo "  --download     try to download a prebuilt driver (default true)"
+	echo "  --compile      try to compile the driver locally (default false)"
+	echo "  --download     try to download a prebuilt driver (default false)"
 	echo "  --source-only  skip execution and allow sourcing in another script"
 	echo ""
 	echo "Environment variables:"
@@ -770,11 +770,6 @@ while test $# -gt 0; do
 	esac
 done
 
-if [ -z "$has_opts" ]; then
-	ENABLE_COMPILE="yes"
-	ENABLE_DOWNLOAD="yes"
-fi
-
 if [ -z "$source_only" ]; then
 	echo "* Running scap-driver-loader for: driver version=${DRIVER_VERSION}, arch=${ARCH}, kernel release=${KERNEL_RELEASE}, kernel version=${KERNEL_VERSION}"