VirtualBox

Changeset 67858 in vbox


Ignore:
Timestamp:
Jul 7, 2017 3:24:25 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116814
Message:

bugref:8906: Additions/linux: kernel modules not always rebuild before reboot on Fedora kernel upgrade
Load vboxvideo when it is rebuilt at boot time even on guests without Xorg.

Our Additions boot scripts load vboxvideo manually if it was previously
blacklisted. However, there is another case when it might not be loaded
automatically: when it has just been built at boot time and Xorg is not.
installed on the guest. Fix that.

File:
1 edited

Legend:

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

    r67852 r67858  
    206206    fi
    207207
     208    case "${x_version}" in
     209    4.* | 6.* | 7.* | 1.?.* | 1.1[0-6].* )
     210        blacklist_vboxvideo="yes"
     211        ;;
     212    esac
     213    case "$oracle_release" in
     214        Oracle*release\ 6.* )
     215            # relevant for OL6/UEK4 but cannot hurt for other kernels
     216            blacklist_vboxvideo="yes"
     217    esac
     218    if test -n "${blacklist_vboxvideo}"; then
     219        echo "blacklist vboxvideo" > /etc/modprobe.d/blacklist-vboxvideo.conf
     220    else
     221        test -f /etc/modprobe.d/blacklist-vboxvideo.conf &&
     222            rm -f /etc/modprobe.d/blacklist-vboxvideo.conf
     223        # We do not want to load the driver if X.Org Server is already
     224        # running, as without a driver the server will touch the hardware
     225        # directly, causing problems.
     226        ps -Af | grep -q '[X]org' || ${MODPROBE} -q vboxvideo
     227    fi
     228
    208229    test -z "$x_version" -o -z "$modules_dir" &&
    209230        {
     
    334355            ;;
    335356    esac
    336     case "${x_version}" in
    337     4.* | 6.* | 7.* | 1.?.* | 1.1[0-6].* )
    338         blacklist_vboxvideo="yes"
    339         ;;
    340     esac
    341     case "$oracle_release" in
    342         Oracle*release\ 6.* )
    343             # relevant for OL6/UEK4 but cannot hurt for other kernels
    344             blacklist_vboxvideo="yes"
    345     esac
    346     if test -n "${blacklist_vboxvideo}"; then
    347         echo "blacklist vboxvideo" > /etc/modprobe.d/blacklist-vboxvideo.conf
    348     else
    349         test -f /etc/modprobe.d/blacklist-vboxvideo.conf &&
    350             rm -f /etc/modprobe.d/blacklist-vboxvideo.conf
    351         # We do not want to load the driver if X.Org Server is already
    352         # running, as without a driver the server will touch the hardware
    353         # directly, causing problems.
    354         ps -Af | grep -q '[X]org' || ${MODPROBE} vboxvideo
    355     fi
    356357    test -n "${dox11config}" &&
    357358        echo "Installing $xserver_version modules" >&2
Note: See TracChangeset for help on using the changeset viewer.

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