jjb: Allow unsupported modules to be loaded when testing lttng-tools
authorKienan Stewart <kstewart@efficios.com>
Mon, 18 Mar 2024 18:44:51 +0000 (14:44 -0400)
committerKienan Stewart <kstewart@efficios.com>
Mon, 18 Mar 2024 19:40:07 +0000 (15:40 -0400)
Change-Id: Idfa2d38bdb26a0ad6c599da596da48e3353489e4
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/lttng-tools/build.sh

index d484e102b4439bc49c2ce89e9065217ca5ac6260..c241e7ba9d256cb86bf238c1449bcfc87a34c3ea 100755 (executable)
@@ -281,6 +281,10 @@ if [ -d "$WORKSPACE/src/lttng-modules" ]; then
     $MAKE -j"$($NPROC)" V=1
     $MAKE modules_install V=1
     depmod
+
+    if [[ -f /etc/products.d/SLES.prod ]] ; then
+        echo 'allow_unsupported_modules 1' > /etc/modprobe.d/10-unsupported-modules.conf
+    fi
 fi
 
 # Print build env details
This page took 0.025068 seconds and 4 git commands to generate.