summaryrefslogtreecommitdiffstats
path: root/core/modules/nvidia-common
diff options
context:
space:
mode:
authorSimon Rettberg2022-10-12 16:47:37 +0200
committerSimon Rettberg2022-10-12 16:47:37 +0200
commitd094169991ae623ca78af1af63da0e52b1724728 (patch)
treed98ea56a50fca0c42cbdc8d19025a3b38b411e8f /core/modules/nvidia-common
parent[rootfs-stage32] Add mountpoint polyfill for minilinux (diff)
downloadmltk-d094169991ae623ca78af1af63da0e52b1724728.tar.gz
mltk-d094169991ae623ca78af1af63da0e52b1724728.tar.xz
mltk-d094169991ae623ca78af1af63da0e52b1724728.zip
[nvidia-common] Remove fake lsmod to restore its functionality
Diffstat (limited to 'core/modules/nvidia-common')
-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..."