Changeset 75428 in vbox
- Timestamp:
- Nov 13, 2018 5:03:46 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126579
- Location:
- trunk/src/VBox/Additions/linux/installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh
r70937 r75428 149 149 stop && start 150 150 return 0 151 } 152 153 setup_opengl() 154 { 155 # Install the guest OpenGL drivers. For now we don't support 156 # multi-architecture installations 157 rm -f /etc/ld.so.conf.d/00vboxvideo.conf 158 rm -Rf /var/lib/VBoxGuestAdditions/lib 159 if /usr/bin/VBoxClient --check3d 2>/dev/null; then 160 mkdir -p /var/lib/VBoxGuestAdditions/lib 161 ln -sf "${INSTALL_DIR}/lib/VBoxOGL.so" /var/lib/VBoxGuestAdditions/lib/libGL.so.1 162 # SELinux for the OpenGL libraries, so that gdm can load them during the 163 # acceleration support check. This prevents an "Oh no, something has gone 164 # wrong!" error when starting EL7 guests. 165 if test -e /etc/selinux/config; then 166 if command -v semanage > /dev/null; then 167 semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1" 168 fi 169 chcon -h -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1" 170 fi 171 echo "/var/lib/VBoxGuestAdditions/lib" > /etc/ld.so.conf.d/00vboxvideo.conf 172 fi 173 ldconfig 151 174 } 152 175 … … 456 479 fail "Failed to set up VBoxClient to start automatically." 457 480 ln -s "${lib_dir}/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null 481 case "${x_version}" in 4.* | 6.* | 7.* | 1.?.* | 1.1* ) 482 setup_opengl 483 esac 458 484 } 459 485 -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r75323 r75428 263 263 264 264 # Put the X.Org driver in place. This is harmless if it is not needed. 265 # Also set up the OpenGL library. 265 266 myerr=`"${INSTALL_DIR}/init/vboxadd-x11" setup 2>&1` 266 267 test -z "${myerr}" || log "${myerr}" 267 # Install the guest OpenGL drivers. For now we don't support268 # multi-architecture installations269 rm -f /etc/ld.so.conf.d/00vboxvideo.conf270 rm -Rf /var/lib/VBoxGuestAdditions/lib271 if /usr/bin/VBoxClient --check3d 2>/dev/null; then272 setup_gl=true;273 else274 unset setup_gl275 fi276 # Disable 3D if Xwayland is found, except on Ubuntu 18.04.277 if type Xwayland >/dev/null 2>&1; then278 unset PRETTY_NAME279 . /etc/os-release 2>/dev/null280 case "${PRETTY_NAME}" in281 "Ubuntu 18.04"*) ;;282 *) unset setup_gl ;;283 esac284 fi285 if test -n "${setup_gl}"; then286 mkdir -p /var/lib/VBoxGuestAdditions/lib287 ln -sf "${INSTALL_DIR}/lib/VBoxOGL.so" /var/lib/VBoxGuestAdditions/lib/libGL.so.1288 # SELinux for the OpenGL libraries, so that gdm can load them during the289 # acceleration support check. This prevents an "Oh no, something has gone290 # wrong!" error when starting EL7 guests.291 if test -e /etc/selinux/config; then292 if command -v semanage > /dev/null; then293 semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1"294 fi295 chcon -h -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1"296 fi297 echo "/var/lib/VBoxGuestAdditions/lib" > /etc/ld.so.conf.d/00vboxvideo.conf298 fi299 ldconfig300 268 301 269 # Mount all shared folders from /etc/fstab. Normally this is done by some
Note:
See TracChangeset
for help on using the changeset viewer.