2c73a001b2
The dynamic kernel module system is not available on RHEL, CentOS, Scientific Linux, or SUSE. Make it part of the distro post-install rather then base post-install. Change-Id: Ic2c345bf9f0738dadae611194e263d3a5d424a3e
19 lines
456 B
Bash
Executable file
19 lines
456 B
Bash
Executable file
#!/bin/sh
|
|
# Trigger a run of dkms for all the modules installed
|
|
# to ensure we have valid modules build for all.
|
|
|
|
modules=$(dkms status | tr ',:' ' ' | awk '{ print $1 "/" $2 }')
|
|
kernels=$(ls /usr/src/linux-headers-*-*-* -d | sed -e 's|/usr/src/linux-headers-||')
|
|
__ARCH=$ARCH
|
|
unset ARCH
|
|
|
|
for module in $modules ; do
|
|
for kernel in $kernels ; do
|
|
dkms build $module -k $kernel
|
|
dkms install $module -k $kernel
|
|
done
|
|
done
|
|
|
|
ARCH=$__ARCH
|
|
|
|
dkms status
|