VirtualBox

Changeset 67736 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jun 30, 2017 1:43:48 PM (7 years ago)
Author:
vboxsync
Message:

bugref:8910: Additions/linux: 3D pass-through not working on Fedora 25 and 26 alpha

Disable EGL guest library and make vboxadd service finish before gdm starts.

Fedora 26 Alpha was failing to start the display server because it was trying
to use our EGL library, which only worked under X11. Since that library was
only written to support Qt 5 applications, and Qt 5 switched back to using
GLX by default shortly after, we simply disable it.

Fedora 25 was failing to log in because the log-in screen started before our
3D libraries were put in place but the user session started after. We solve
this by changing the vboxadd systemd service to finish before the display
manager service is started, as suggested by Hans de Goede. Many thanks.

File:
1 edited

Legend:

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

    r66423 r67736  
    1616#
    1717
     18# X-Start-Before is a Debian Addition which we use when converting to
     19# a systemd unit.  X-Service-Type is our own invention, also for systemd.
    1820
    1921# chkconfig: 345 10 90
     
    2628# Default-Start:  2 3 4 5
    2729# Default-Stop:   0 1 6
     30# X-Start-Before: display-manager
     31# X-Service-Type: oneshot
    2832# Description:    VirtualBox Linux Additions kernel modules
    2933### END INIT INFO
     
    250254    # multi-architecture installations
    251255    rm -f /etc/ld.so.conf.d/00vboxvideo.conf
     256    rm -Rf /var/lib/VBoxGuestAdditions/lib
    252257    if /usr/bin/VBoxClient --check3d 2>/dev/null; then
    253258        mkdir -p /var/lib/VBoxGuestAdditions/lib
    254259        ln -sf "${INSTALL_DIR}/lib/VBoxOGL.so" /var/lib/VBoxGuestAdditions/lib/libGL.so.1
    255         ln -sf "${INSTALL_DIR}/lib/VBoxEGL.so" /var/lib/VBoxGuestAdditions/lib/libEGL.so.1
    256260        # SELinux for the OpenGL libraries, so that gdm can load them during the
    257261        # acceleration support check.  This prevents an "Oh no, something has gone
     
    260264            if command -v semanage > /dev/null; then
    261265                semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1"
    262                 semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libEGL.so.1"
    263266            fi
    264267            chcon -h  -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1"
    265             chcon -h  -t lib_t  "/var/lib/VBoxGuestAdditions/lib/libEGL.so.1"
    266268        fi
    267269        echo "/var/lib/VBoxGuestAdditions/lib" > /etc/ld.so.conf.d/00vboxvideo.conf
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