From 8784fb72e8eee3d983d30ac46e0ec3709d4f0ab0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:17:34 +0200 Subject: Adding debian version 7.0.14-dfsg-4. Signed-off-by: Daniel Baumann --- debian/patches/04-vboxdrv-references.patch | 77 ++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 debian/patches/04-vboxdrv-references.patch (limited to 'debian/patches/04-vboxdrv-references.patch') diff --git a/debian/patches/04-vboxdrv-references.patch b/debian/patches/04-vboxdrv-references.patch new file mode 100644 index 00000000..fbe3ea75 --- /dev/null +++ b/debian/patches/04-vboxdrv-references.patch @@ -0,0 +1,77 @@ +Description: Change error messages for vboxdrv failure, according to virtualbox-dkms. +Author: Daniel Hahler + +Index: virtualbox/src/VBox/VMM/VMMR3/VM.cpp +=================================================================== +--- virtualbox.orig/src/VBox/VMM/VMMR3/VM.cpp ++++ virtualbox/src/VBox/VMM/VMMR3/VM.cpp +@@ -281,12 +281,8 @@ + + #ifdef RT_OS_LINUX + case VERR_SUPDRV_COMPONENT_NOT_FOUND: +- pszError = N_("One of the kernel modules was not successfully loaded. Make sure " +- "that VirtualBox is correctly installed, and if you are using EFI " +- "Secure Boot that the modules are signed if necessary in the right " +- "way for your host system. Then try to recompile and reload the " +- "kernel modules by executing " +- "'/sbin/vboxconfig' as root"); ++ pszError = N_("Please install the virtualbox-dkms package " ++ "and execute 'modprobe vboxdrv' as root"); + break; + #endif + +@@ -352,12 +348,8 @@ + { + case VERR_VM_DRIVER_LOAD_ERROR: + #ifdef RT_OS_LINUX +- pszError = N_("VirtualBox kernel driver not loaded. The vboxdrv kernel module " +- "was either not loaded, /dev/vboxdrv is not set up properly, " +- "or you are using EFI Secure Boot and the module is not signed " +- "in the right way for your system. If necessary, try setting up " +- "the kernel module again by executing " +- "'/sbin/vboxconfig' as root"); ++ pszError = N_("Please install the virtualbox-dkms package " ++ "and execute 'modprobe vboxdrv' as root"); + #else + pszError = N_("VirtualBox kernel driver not loaded"); + #endif +@@ -396,12 +388,8 @@ + case VERR_INVALID_HANDLE: /** @todo track down and fix this error. */ + case VERR_VM_DRIVER_NOT_INSTALLED: + #ifdef RT_OS_LINUX +- pszError = N_("VirtualBox kernel driver not Installed. The vboxdrv kernel module " +- "was either not loaded, /dev/vboxdrv is not set up properly, " +- "or you are using EFI Secure Boot and the module is not signed " +- "in the right way for your system. If necessary, try setting up " +- "the kernel module again by executing " +- "'/sbin/vboxconfig' as root"); ++ pszError = N_("Please install the virtualbox-dkms package " ++ "and execute 'modprobe vboxdrv' as root"); + #else + pszError = N_("VirtualBox kernel driver not installed"); + #endif +Index: virtualbox/src/VBox/Frontends/VirtualBox/src/main.cpp +=================================================================== +--- virtualbox.orig/src/VBox/Frontends/VirtualBox/src/main.cpp ++++ virtualbox/src/VBox/Frontends/VirtualBox/src/main.cpp +@@ -98,8 +98,9 @@ + + QString g_QStrHintLinuxNoDriver = QApplication::tr( + "The VirtualBox Linux kernel driver is either not loaded or not set " +- "up correctly. Please try setting it up again by executing

" +- " '/sbin/vboxconfig'

" ++ "up correctly. Please reinstall virtualbox-dkms " ++ "package and load the kernel module by executing

" ++ " 'modprobe vboxdrv'

" + "as root.

" + "If your system has EFI Secure Boot enabled you may also need to sign " + "the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before " +@@ -118,7 +119,7 @@ + "The VirtualBox kernel modules do not match this version of " + "VirtualBox. The installation of VirtualBox was apparently not " + "successful. Executing

" +- " '/sbin/vboxconfig'

" ++ " 'modprobe vboxdrv'

" + "may correct this. Make sure that you are not mixing builds " + "of VirtualBox from different sources." + ); -- cgit v1.2.3