summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modules/nvidia-common/module.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/nvidia-common/module.build b/core/modules/nvidia-common/module.build
index ab3dbcd8..2dbb6a36 100644
--- a/core/modules/nvidia-common/module.build
+++ b/core/modules/nvidia-common/module.build
@@ -58,6 +58,7 @@ build() {
exit 0 # Fake it since it will try to load the module and probably fail
EOF
+ rm -f -- "${builddir}/usr/sbin/lsmod" # Don't want this outside the container
if grep -qE "$KMOD_ERROR" "${builddir}${KMOD_LOG}"; then
pwarning "Could not compile all kernel modules: $( grep -E "$KMOD_ERROR" "${builddir}${KMOD_LOG}" )"
perror "Bailing out..."