1
dkms.conf allows to set a BUILD_EXCLUSIVE_KERNEL / BUILD_EXCLUSIVE_ARCH
2
parameter to specify a regular expression which defines the subset of
3
kernels / architectures which DKMS is allowed to build the module for. If
4
the kernel being built for does not match against this regular
5
expressions, the dkms build will error out with exit code 9.
7
This patch changes dkms_common.postinst to handle this dkms build
8
error gracefully by skipping build for the non matching kernels.
9
--- a/dkms_common.postinst
10
+++ b/dkms_common.postinst
11
@@ -231,8 +231,22 @@ for KERNEL in $KERNELS; do
13
if [ -e /lib/modules/$KERNEL/build/include ]; then
14
echo "Building initial module for $KERNEL"
16
dkms build -m $NAME -v $VERSION -k $KERNEL $ARCH > /dev/null
32
dkms_status=`dkms status -m $NAME -v $VERSION -k $KERNEL $ARCH`
34
echo "Module build for the currently running kernel was skipped since the"