From edd9020372ae5deae8406cebfd163b4450100ff8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 5 Jan 2023 13:37:00 +0100 Subject: [vmware17] Switch to VMware 17 --- core/modules/vmware17/data/addon-required | 19 +++++++++++++++++++ core/modules/vmware17/data/opt/openslx/bin/vmplayer | 16 ++++++++++++++++ core/modules/vmware17/data/opt/openslx/bin/vmware | 1 + core/modules/vmware17/data/usr/bin/vmplayer | 1 + core/modules/vmware17/data/usr/bin/vmware | 1 + 5 files changed, 38 insertions(+) create mode 100644 core/modules/vmware17/data/addon-required create mode 100755 core/modules/vmware17/data/opt/openslx/bin/vmplayer create mode 120000 core/modules/vmware17/data/opt/openslx/bin/vmware create mode 120000 core/modules/vmware17/data/usr/bin/vmplayer create mode 120000 core/modules/vmware17/data/usr/bin/vmware (limited to 'core/modules/vmware17/data') diff --git a/core/modules/vmware17/data/addon-required b/core/modules/vmware17/data/addon-required new file mode 100644 index 00000000..a86e41bc --- /dev/null +++ b/core/modules/vmware17/data/addon-required @@ -0,0 +1,19 @@ +#!/bin/bash + +# the vmware helper needs the kmod msr and the tool rdmsr, +# /dev, /sys and /proc to properly detect the CPU info. + +bindmount=("/dev" "/proc" "/sys") + +for bm in "${bindmount[@]}"; do + mount --bind "$bm" "${NEWROOT}/${bm}" +done + +export PATH="$PATH:/opt/openslx/sbin:/opt/openslx/bin" +version="$(chroot "$NEWROOT" vmware-get-supported-version)" + +for bm in "${bindmount[@]}"; do + umount "${NEWROOT}/${bm}" +done + +[ -n "$version" ] && [ "$version" = "new" ] diff --git a/core/modules/vmware17/data/opt/openslx/bin/vmplayer b/core/modules/vmware17/data/opt/openslx/bin/vmplayer new file mode 100755 index 00000000..05a4ec3a --- /dev/null +++ b/core/modules/vmware17/data/opt/openslx/bin/vmplayer @@ -0,0 +1,16 @@ +#!/bin/ash +# radically simplified version of the original script vmplayer by VMware Inc. +PREFIX=/usr/lib/vmware # depends on the vmware location + +# HACK: Let the OpenGL driver report s3tc capability even if not present, so 3D will be enabled +export force_s3tc_enable=true + +# Turn off "helpful" DE features +export APPMENU_DISPLAY_BOTH=1 +export UBUNTU_MENUPROXY=0 +export GNOME_DISABLE_CRASH_DIALOG=1 + +PROG=$(basename $0) + +exec "$PREFIX/bin/$PROG" "$@" + diff --git a/core/modules/vmware17/data/opt/openslx/bin/vmware b/core/modules/vmware17/data/opt/openslx/bin/vmware new file mode 120000 index 00000000..aa0b74b1 --- /dev/null +++ b/core/modules/vmware17/data/opt/openslx/bin/vmware @@ -0,0 +1 @@ +vmplayer \ No newline at end of file diff --git a/core/modules/vmware17/data/usr/bin/vmplayer b/core/modules/vmware17/data/usr/bin/vmplayer new file mode 120000 index 00000000..2944838d --- /dev/null +++ b/core/modules/vmware17/data/usr/bin/vmplayer @@ -0,0 +1 @@ +/opt/openslx/bin/vmplayer \ No newline at end of file diff --git a/core/modules/vmware17/data/usr/bin/vmware b/core/modules/vmware17/data/usr/bin/vmware new file mode 120000 index 00000000..bde6f9c0 --- /dev/null +++ b/core/modules/vmware17/data/usr/bin/vmware @@ -0,0 +1 @@ +/opt/openslx/bin/vmware \ No newline at end of file -- cgit v1.2.3-55-g7522