summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2017-10-07 09:56:30 +0000
committerintrigeri <intrigeri@boum.org>2017-10-07 10:23:52 +0000
commit9c7d5cc2393c81c92cd82e5aa1a81a8fb8775374 (patch)
treeaa832ab48192257bf62c5ac25cb70e8dfa180561
parent91ace567b91ebb388dc05be19f29d5832fc805c4 (diff)
Take into account where DKMS modules get installed nowadays.
-rwxr-xr-xconfig/chroot_local-hooks/50-dkms10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/chroot_local-hooks/50-dkms b/config/chroot_local-hooks/50-dkms
index 41cf956..2061aa8 100755
--- a/config/chroot_local-hooks/50-dkms
+++ b/config/chroot_local-hooks/50-dkms
@@ -32,8 +32,14 @@ dkms install \
# dkms.conf for a DKMS module includes a BUILD_EXCLUSIVE directive
# which does not match our kernel version, the modules won't be built
# and then we should abort the build.
-for module in aufs vboxguest vboxsf vboxvideo ; do
- for modules_dir in /lib/modules/*/updates/dkms ; do
+for modules_dir in /lib/modules/*/kernel/fs/aufs ; do
+ if [ ! -f "${modules_dir}/aufs.ko" ]; then
+ echo "Can not find aufs.ko module in '${modules_dir}" >&2
+ exit 1
+ fi
+done
+for module in vboxguest vboxsf vboxvideo ; do
+ for modules_dir in /lib/modules/*/updates ; do
if [ ! -f "${modules_dir}/${module}.ko" ]; then
echo "Can not find ${module} module in '${modules_dir}" >&2
exit 1