VirtualBox

Changeset 89145 in vbox


Ignore:
Timestamp:
May 18, 2021 4:57:00 PM (4 years ago)
Author:
vboxsync
Message:

Installer: Linux: prevent vboxdrv.sh from building modules if compatible versions already installed, bugref:9958.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxdrv.sh

    r89134 r89145  
    306306}
    307307
     308# Check if required modules are installed in the system and versions match.
     309setup_complete()
     310{
     311    [ "$(module_available vboxdrv)"    = "1" ] || return
     312    [ "$(module_available vboxnetflt)" = "1" ] || return
     313    [ "$(module_available vboxnetadp)" = "1" ] || return
     314
     315    # All modules are in place.
     316    echo "1"
     317}
     318
    308319start()
    309320{
     
    321332        fi
    322333    fi
     334
     335    # Check if system already has matching modules installed.
     336    [ "$(setup_complete)" = "1" ] || setup
     337
    323338    if ! running vboxdrv; then
    324339        if ! rm -f $DEVICE; then
     
    326341        fi
    327342        if ! $MODPROBE vboxdrv > /dev/null 2>&1; then
    328             setup
    329             if ! $MODPROBE vboxdrv > /dev/null 2>&1; then
    330                 failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
    331             fi
     343            failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
    332344        fi
    333345        sleep .2
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette