Commit 58c096b3 authored by intrigeri's avatar intrigeri
Browse files

Be more relaxed wrt. where VirtualBox kernel modules can be stored.

For example, if one of the modules dkms would build is not newer than what is
already found in the Debian kernel, dkms won't build it and our previous
sanity check would abort the build:

 /etc/kernel/header_postinst.d/dkms:
 Error! Module version 5.2.16_Debian for vboxvideo.ko
 is not newer than what is already found in kernel 4.17.0-1-amd64 (5.2.16_Debian).
parent bf956f78
......@@ -28,8 +28,9 @@ done
# which does not match our kernel version, the modules won't be built
# and then we should abort the build.
for module in vboxguest vboxsf vboxvideo ; do
for modules_dir in /lib/modules/*/updates ; do
if [ ! -f "${modules_dir}/${module}.ko" ]; then
for modules_dir in /lib/modules/* ; do
found=$(find "$modules_dir" -name "${module}.ko" | wc -l)
if [ "$found" = 0 ]; then
echo "Can not find ${module} module in '${modules_dir}" >&2
exit 1
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment