diff --git a/kernel-open/dkms.conf b/kernel-open/dkms.conf index aef54d352..fa0898ad2 100644 --- a/kernel-open/dkms.conf +++ b/kernel-open/dkms.conf @@ -2,6 +2,10 @@ PACKAGE_NAME="nvidia" PACKAGE_VERSION="__VERSION_STRING" AUTOINSTALL="yes" +# Ensure shell scripts are executable before building. DKMS may not preserve +# file permissions when copying source to the build directory. +PRE_BUILD="find . -type f -name '*.sh' -exec chmod +x {} +" + # By default, DKMS will add KERNELRELEASE to the make command line; however, # this will cause the kernel module build to infer that it was invoked via # Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting