Package: virtualbox-dkms
Severity: normal
Version: 7.1.8-dfsg-3
Tags: patch

Hi!

The modprobe.d file recently added in the virtualbox-dkms packge is broken, as it gets installed inside a subdirectory of the modprobe.d dir.

Indeed, inspecting the system journal, one can find this entry:

   libkmod: ERROR: conf_files_filter_out: Directories inside directories are 
not supported: /etc/modprobe.d/virtualbox-dkms.conf

I've attached a patch fixing this issue, and also pushed it on Salsa as https://salsa.debian.org/pkg-virtualbox-team/virtualbox/-/merge_requests/15

Bye!
From 1858e6c359f0170746ebd84e2a45fc53d3865cb9 Mon Sep 17 00:00:00 2001
From: Andrea Pappacoda <and...@pappacoda.it>
Date: Thu, 5 Jun 2025 16:57:15 +0200
Subject: [PATCH] virtualbox-dkms: fix modprobe.d file

This patch does two things:

1. It moves the modprobe.d file to /usr/lib/modprobe.d, instead of
   /etc/modprobe.d
2. It actually installs the file correctly. Before this, a
   "virtualbox-dkms.conf" directory was created inside modprobe.d, which
   itself contained the virtualbox-dkms.modprobe.conf file (as
   dh_install does not support renaming files)

Can be seen as a fixup of commit 47c3883ade1b8fad779f70d46e40bd36a1f32a02
---
 .../virtualbox-dkms.conf}                                       | 0
 debian/virtualbox-dkms.install.in                               | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename debian/{virtualbox-dkms.modprobe.conf => modprobe.d/virtualbox-dkms.conf} (100%)

diff --git a/debian/virtualbox-dkms.modprobe.conf b/debian/modprobe.d/virtualbox-dkms.conf
similarity index 100%
rename from debian/virtualbox-dkms.modprobe.conf
rename to debian/modprobe.d/virtualbox-dkms.conf
diff --git a/debian/virtualbox-dkms.install.in b/debian/virtualbox-dkms.install.in
index a062311dd..4857b8260 100644
--- a/debian/virtualbox-dkms.install.in
+++ b/debian/virtualbox-dkms.install.in
@@ -30,4 +30,4 @@ out/bin/src/vboxdrv/VBox /usr/src/virtualbox-CVERSION
 out/bin/src/vboxdrv/include/iprt/nocrt /usr/src/virtualbox-CVERSION/include/iprt
 
 debian/virtualbox-dkms.files/Makefile /usr/src/virtualbox-CVERSION
-debian/virtualbox-dkms.modprobe.conf /etc/modprobe.d/virtualbox-dkms.conf
+debian/modprobe.d/virtualbox-dkms.conf /usr/lib/modprobe.d/
-- 
2.47.2

Reply via email to