[VirtualBox] Add back RPMFusion strings to VBox.sh it is used

Sérgio M. Basto sergiomb at rpmfusion.org
Mon Sep 19 04:27:37 CEST 2016


commit db091b25cc10042c5f0123d91b5288caaabb3f21
Author: Sérgio M. Basto <sergio at serjux.com>
Date:   Sat Sep 17 04:49:08 2016 +0100

    Add back RPMFusion strings to VBox.sh it is used
    
    on /usr/bin/VBox

 VirtualBox-5.1.0-strings.patch | 42 +++++++++++++++++++++++++++++++++++++-----
 1 file changed, 37 insertions(+), 5 deletions(-)
---
diff --git a/VirtualBox-5.1.0-strings.patch b/VirtualBox-5.1.0-strings.patch
index 1ec6b16..f2d9666 100644
--- a/VirtualBox-5.1.0-strings.patch
+++ b/VirtualBox-5.1.0-strings.patch
@@ -1,3 +1,4 @@
+Replace some strings with ones that (sometimes) make more sense.
 --- ./src/VBox/Frontends/VirtualBox/src/main.cpp.orig	2016-07-15 22:49:01.368518594 +0200
 +++ ./src/VBox/Frontends/VirtualBox/src/main.cpp	2016-07-15 22:52:19.852192522 +0200
 @@ -101,11 +101,12 @@
@@ -41,9 +42,9 @@
      );
  
  
---- ./src/VBox/VMM/VMMR3/VM.cpp.orig	2016-07-15 22:49:17.314169835 +0200
-+++ ./src/VBox/VMM/VMMR3/VM.cpp	2016-07-15 22:53:46.385309383 +0200
-@@ -384,8 +384,8 @@
+--- ./src/VBox/VMM/VMMR3/VM.cpp.orig	2016-09-12 17:19:22.000000000 +0100
++++ ./src/VBox/VMM/VMMR3/VM.cpp	2016-09-16 04:02:17.704237277 +0100
+@@ -376,8 +376,8 @@ VMMR3DECL(int)   VMR3Create(uint32_t cCp
  #ifdef RT_OS_LINUX
                      pszError = N_("VirtualBox kernel driver not loaded. The vboxdrv kernel module "
                                    "was either not loaded or /dev/vboxdrv is not set up properly. "
@@ -54,14 +55,45 @@
  #else
                      pszError = N_("VirtualBox kernel driver not loaded");
  #endif
-@@ -426,8 +426,8 @@
+@@ -418,8 +418,8 @@ VMMR3DECL(int)   VMR3Create(uint32_t cCp
  #ifdef RT_OS_LINUX
                      pszError = N_("VirtualBox kernel driver not installed. The vboxdrv kernel module "
                                    "was either not loaded or /dev/vboxdrv was not created for some "
 -                                  "reason. Re-setup the kernel module by executing "
 -                                  "'/sbin/vboxconfig' as root");
-+                                  "reason. Install the kernel module by executing 'dnf install akmod-VirtualBox'"
++                                  "reason. Install the kernel module by executing 'dnf install akmod-VirtualBox kernel-devel-$(uname -r)'"
 +                                  "and 'akmods --kernels $(uname -r) && systemctl restart systemd-modules-load.service' as root");
  #else
                      pszError = N_("VirtualBox kernel driver not installed");
  #endif
+--- ./src/VBox/Installer/linux/VBox.sh.orig	2016-09-16 03:39:44.163517672 +0100
++++ ./src/VBox/Installer/linux/VBox.sh	2016-09-16 04:02:17.704237277 +0100
+@@ -60,19 +60,24 @@ elif ! lsmod|grep -q vboxdrv; then
+     cat << EOF
+ WARNING: The vboxdrv kernel module is not loaded. Either there is no module
+          available for the current kernel (`uname -r`) or it failed to
+-         load. Please recompile the kernel module and install it by
++         load. Please try load the kernel module by executing as root
+ 
+-           sudo /sbin/vboxconfig
++           dnf install akmod-VirtualBox kernel-devel-$(uname -r)
++           akmods --kernels $(uname -r) && systemctl restart systemd-modules-load.service
+ 
+          You will not be able to start VMs until this problem is fixed.
+ EOF
+ elif [ ! -c /dev/vboxdrv ]; then
+     cat << EOF
+ WARNING: The character device /dev/vboxdrv does not exist. Try
++install the kernel module by executing as root
+ 
+-           sudo /sbin/vboxconfig
++           dnf install akmod-VirtualBox kernel-devel-$(uname -r)
++           akmods --kernels $(uname -r) && systemctl restart systemd-modules-load.service
+ 
+-         and if that is not successful, try to re-install the package.
++         and if that is not successful, try see if
++         http://rpmfusion.org/Howto/VirtualBox have any solution or contact
++         RPMFusion by Mailing Lists, IRC or Bugzilla.
+ 
+          You will not be able to start VMs until this problem is fixed.
+ EOF


More information about the rpmfusion-commits mailing list