VirtualBox

Changeset 25687 in vbox


Ignore:
Timestamp:
Jan 8, 2010 9:51:15 AM (15 years ago)
Author:
vboxsync
Message:

Linux host/guest kernel modules: respect unsupported modules on some SUSE distributions

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r25139 r25687  
    3939BUILDVBOXVIDEO=`/bin/ls /usr/src/vboxvideo*/build_in_tmp 2>/dev/null|cut -d' ' -f1`
    4040LOG="/var/log/vboxadd-install.log"
     41MODPROBE=/sbin/modprobe
     42
     43if $MODPROBE -c | grep -q '^allow_unsupported_modules  *0'; then
     44  MODPROBE="$MODPROBE --allow-unsupported-modules"
     45fi
    4146
    4247# Check architecture
     
    205210        }
    206211
    207         modprobe vboxguest >/dev/null 2>&1 || {
     212        $MODPROBE vboxguest >/dev/null 2>&1 || {
    208213            fail "modprobe vboxguest failed"
    209214        }
     
    257262    if [ -n "$BUILDVBOXVFS" ]; then
    258263        running_vboxvfs || {
    259             modprobe vboxvfs > /dev/null 2>&1 || {
     264            $MODPROBE vboxvfs > /dev/null 2>&1 || {
    260265                if dmesg | grep "vboxConnect failed" > /dev/null 2>&1; then
    261266                    fail_msg
  • trunk/src/VBox/Installer/linux/vboxdrv.sh.in

    r23891 r25687  
    3737NOLSB=%NOLSB%
    3838DEBIAN=%DEBIAN%
     39MODPROBE=/sbin/modprobe
     40
     41if $MODPROBE -c | grep -q '^allow_unsupported_modules  *0'; then
     42  MODPROBE="$MODPROBE --allow-unsupported-modules"
     43fi
    3944
    4045[ -f /lib/lsb/init-functions ] || NOLSB=yes
     
    167172          echo 2 > /proc/sys/kernel/perf_counter_paranoid
    168173        fi
    169         if ! modprobe vboxdrv > /dev/null 2>&1; then
     174        if ! $MODPROBE vboxdrv > /dev/null 2>&1; then
    170175            failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
    171176        fi
     
    199204        failure "Cannot change owner $GROUPNAME for device $DEVICE"
    200205    fi
    201     if ! modprobe vboxnetflt > /dev/null 2>&1; then
     206    if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then
    202207        failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why"
    203208    fi
    204     if ! modprobe vboxnetadp > /dev/null 2>&1; then
     209    if ! $MODPROBE vboxnetadp > /dev/null 2>&1; then
    205210        failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why"
    206211    fi
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