-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1146 from flatcar/krnowak/vmware-sysext
Sysext image for VMware OEM
- Loading branch information
Showing
76 changed files
with
1,806 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Reworked the VMware OEM software to be shipped as A/B updated systemd-sysext image | ||
- The open-vm-tools package in VMware OEM now comes with vmhgfs-fuse, udev rules, pam and vgauth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- rpcsvc-proto ([1.4.4](https://github.com/thkukuk/rpcsvc-proto/releases/tag/v1.4.4)) | ||
- VMWARE: libdnet ([1.16.2](https://github.com/ofalk/libdnet/releases/tag/libdnet-1.16.2) (includes [1.16](https://github.com/ofalk/libdnet/releases/tag/libdnet-1.16)) |
3 changes: 0 additions & 3 deletions
3
sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/README
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...iner/src/third_party/coreos-overlay/app-emulation/open-vm-tools/files/10.1.0-Werror.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From fdf599994d58ef47b73dc94d21d3556a2ec5d9da Mon Sep 17 00:00:00 2001 | ||
From: Mike Gilbert <[email protected]> | ||
Date: Sat, 26 Nov 2016 11:54:33 -0500 | ||
Subject: [PATCH] build: drop -Werror | ||
|
||
--- | ||
open-vm-tools/configure.ac | 1 - | ||
1 file changed, 1 deletion(-) | ||
|
||
diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac | ||
index 8d4604e8..4d925f22 100644 | ||
--- a/open-vm-tools/configure.ac | ||
+++ b/open-vm-tools/configure.ac | ||
@@ -1137,7 +1137,6 @@ AC_C_VOLATILE | ||
|
||
### General flags / actions | ||
CFLAGS="$CFLAGS -Wall" | ||
-CFLAGS="$CFLAGS -Werror" | ||
|
||
# -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' | ||
# in Xlib.h on OpenSolaris. | ||
-- | ||
2.11.0.rc2 | ||
|
26 changes: 26 additions & 0 deletions
26
...ntainer/src/third_party/coreos-overlay/app-emulation/open-vm-tools/files/11.3.5-icu.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 08caf83eaa0e66cee8f3e49479cd201a10bb3919 Mon Sep 17 00:00:00 2001 | ||
From: Mike Gilbert <[email protected]> | ||
Date: Sat, 25 Sep 2021 21:14:25 -0400 | ||
Subject: [PATCH] lib/unicode: add ICU_LIBS to LDADD | ||
|
||
--- | ||
open-vm-tools/lib/unicode/Makefile.am | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/open-vm-tools/lib/unicode/Makefile.am b/open-vm-tools/lib/unicode/Makefile.am | ||
index 4284c51c..40261fba 100644 | ||
--- a/open-vm-tools/lib/unicode/Makefile.am | ||
+++ b/open-vm-tools/lib/unicode/Makefile.am | ||
@@ -25,7 +25,9 @@ libUnicode_la_SOURCES += unicodeSimpleTypes.c | ||
libUnicode_la_SOURCES += unicodeSimpleOperations.c | ||
libUnicode_la_SOURCES += unicodeSimpleTransforms.c | ||
libUnicode_la_SOURCES += unicodeStatic.c | ||
+libUnicode_la_LIBADD = | ||
|
||
if HAVE_ICU | ||
libUnicode_la_SOURCES += unicodeICU.c | ||
+libUnicode_la_LIBADD += @ICU_LIBS@ | ||
endif | ||
-- | ||
2.33.0 | ||
|
2 changes: 2 additions & 0 deletions
2
sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/files/mount.vmhgfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
hgfsmounter "$@" >/dev/null 2>&1 || vmhgfs-fuse "$@" |
31 changes: 0 additions & 31 deletions
31
...open-vm-tools/files/open-vm-tools-0001-configure-Add-options-for-fuse-hgfs-and-udev.patch
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...iner/src/third_party/coreos-overlay/app-emulation/open-vm-tools/files/open-vm-tools.confd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Set this to no to disable drag and drop (and vmblock) loading. | ||
VM_DRAG_AND_DROP="yes" |
59 changes: 59 additions & 0 deletions
59
...iner/src/third_party/coreos-overlay/app-emulation/open-vm-tools/files/open-vm-tools.initd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/sbin/openrc-run | ||
# Copyright 1999-2013 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
pidfile="/run/vmtoolsd.pid" | ||
command="/usr/bin/vmtoolsd" | ||
command_args="-b ${pidfile}" | ||
|
||
vmblockmntpt="/proc/fs/vmblock/mountPoint" | ||
vmblockfusemntpt="/run/vmblock-fuse" | ||
|
||
depend() { | ||
before checkfs fsck net X | ||
} | ||
|
||
start_vmblock() { | ||
checkpath -d -m 1777 /tmp/VMwareDnD | ||
if command -v vmware-vmblock-fuse > /dev/null; then | ||
modprobe fuse > /dev/null 2>&1 | ||
checkpath -d "${vmblockfusemntpt}" | ||
ebegin "Mounting vmblock-fuse" | ||
vmware-vmblock-fuse \ | ||
-o subtype=vmware-vmblock,default_permissions,allow_other \ | ||
"${vmblockfusemntpt}" | ||
eend $? | ||
else | ||
modprobe vmblock > /dev/null 2>&1 | ||
checkpath -d "${vmblockmntpt}" | ||
ebegin "Mounting vmblock" | ||
mount -t vmblock vmblock "${vmblockmntpt}" | ||
eend $? | ||
fi | ||
} | ||
|
||
stop_vmblock() { | ||
if [ -d "${vmblockfusemntpt}" ]; then | ||
ebegin "Unmounting vmblock-fuse" | ||
umount "${vmblockfusemntpt}" | ||
eend $? | ||
else | ||
ebegin "Unmounting vmblock" | ||
umount "${vmblockmntpt}" | ||
eend $? | ||
fi | ||
} | ||
|
||
start_pre() { | ||
if [ x"${VM_DRAG_AND_DROP}" = xyes ]; then | ||
start_vmblock | ||
fi | ||
return 0 | ||
} | ||
|
||
stop_post() { | ||
if [ x"${VM_DRAG_AND_DROP}" = xyes ]; then | ||
stop_vmblock | ||
fi | ||
return 0 | ||
} |
14 changes: 14 additions & 0 deletions
14
...ontainer/src/third_party/coreos-overlay/app-emulation/open-vm-tools/files/vgauthd.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=VGAuth Service for open-vm-tools | ||
Documentation=https://github.com/vmware/open-vm-tools | ||
ConditionVirtualization=vmware | ||
PartOf=vmtoolsd.service | ||
|
||
[Service] | ||
# For dev-libs/xerces-c[iconv,-icu] | ||
EnvironmentFile=-/etc/env.d/50xerces-c | ||
ExecStart=/usr/bin/VGAuthService -s | ||
TimeoutStopSec=5 | ||
|
||
[Install] | ||
RequiredBy=vmtoolsd.service |
6 changes: 2 additions & 4 deletions
6
...e/oem-vmware/files/units/vmtoolsd.service → ...tion/open-vm-tools/files/vmtoolsd.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
[Unit] | ||
Description=VMware Tools Agent | ||
Description=Service for virtual machines hosted on VMware | ||
Documentation=https://github.com/vmware/open-vm-tools | ||
ConditionVirtualization=vmware | ||
|
||
[Service] | ||
ExecStartPre=/usr/bin/ln -sfT /oem/vmware-tools /etc/vmware-tools | ||
ExecStart=/oem/bin/vmtoolsd | ||
ExecStart=/usr/bin/vmtoolsd | ||
TimeoutStopSec=5 | ||
PrivateTmp=true | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
14 changes: 14 additions & 0 deletions
14
.../src/third_party/coreos-overlay/app-emulation/open-vm-tools/files/vmtoolsd.vgauth.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Service for virtual machines hosted on VMware | ||
Documentation=https://github.com/vmware/open-vm-tools | ||
ConditionVirtualization=vmware | ||
Requires=vgauthd.service | ||
After=vgauthd.service | ||
|
||
[Service] | ||
ExecStart=/usr/bin/vmtoolsd | ||
TimeoutStopSec=5 | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
Also=vgauthd.service |
17 changes: 3 additions & 14 deletions
17
sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<email>[email protected]</email> | ||
<name>Mike Gilbert</name> | ||
</maintainer> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>Gentoo VMware Project</name> | ||
</maintainer> | ||
<!-- maintainer-needed --> | ||
<longdescription> | ||
The Open Virtual Machine Tools (open-vm-tools) are the open source | ||
implementation of VMware Tools. They are a set of guest operating system | ||
virtualization components that enhance performance and user experience | ||
of virtual machines. | ||
</longdescription> | ||
<use> | ||
<flag name="caf">Build Common Agent Framework</flag> | ||
<flag name="deploypkg">Build deploypkg plugin</flag> | ||
<flag name="dnet">Enable support for nicinfo</flag> | ||
<flag name="doc">Generate API documentation</flag> | ||
<flag name="fuse">Enable vmblock-fuse/vmhgfs-fuse</flag> | ||
<flag name="grabbitmqproxy">Build grabbitmqproxy plugin</flag> | ||
<flag name="gtkmm">Compile with Gtkmm and sigc++ (Recommended)</flag> | ||
<flag name="multimon">Enable multimon (Requires X)</flag> | ||
<flag name="pic">Force shared libraries to be built as PIC</flag> | ||
<flag name="resolutionkms">Build the linux/unix resolutionkms module</flag> | ||
<flag name="vgauth">Build vgauth</flag> | ||
<flag name="xml-security-c">Build vgauth with xml-security-c instead of xmlsec1</flag> | ||
<flag name="xmlsec">Build vgauth with xmlsec1 instead of xml-security-c</flag> | ||
</use> | ||
<upstream> | ||
<remote-id type="github">vmware/open-vm-tools</remote-id> | ||
<remote-id type="cpe">cpe:/a:vmware:tools</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
Oops, something went wrong.