mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
open-vm-tools: use systemd service to load modules
This commit is contained in:
parent
5156ff3b9e
commit
84a2fe2ff8
@ -1,2 +0,0 @@
|
|||||||
# load vmxnet kernel module
|
|
||||||
vmxnet
|
|
@ -33,8 +33,6 @@ PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools"
|
|||||||
PKG_IS_ADDON="no"
|
PKG_IS_ADDON="no"
|
||||||
PKG_AUTORECONF="yes"
|
PKG_AUTORECONF="yes"
|
||||||
|
|
||||||
OPENVMTOOLS_KERNEL_VER=$(basename $(ls -d $ROOT/$BUILD/linux-[0-9]*)| sed 's|linux-||g')
|
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_TARGET="--disable-docs \
|
PKG_CONFIGURE_OPTS_TARGET="--disable-docs \
|
||||||
--disable-tests \
|
--disable-tests \
|
||||||
--disable-deploypkg \
|
--disable-deploypkg \
|
||||||
@ -54,18 +52,18 @@ post_unpack() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pre_configure_target() {
|
pre_configure_target() {
|
||||||
export LIBS="-ldnet"
|
export LIBS="-ldnet"
|
||||||
}
|
}
|
||||||
|
|
||||||
makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
mkdir -p $INSTALL/usr/lib
|
rm -rf $INSTALL/sbin
|
||||||
cp -PR libvmtools/.libs/libvmtools.so* $INSTALL/usr/lib
|
rm -rf $INSTALL/usr/share
|
||||||
|
rm -rf $INSTALL/etc/vmware-tools/scripts/vmware/network
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/bin
|
find $INSTALL/etc/vmware-tools/ -type f | xargs sed -i '/.*expr.*/d'
|
||||||
cp -PR services/vmtoolsd/.libs/vmtoolsd $INSTALL/usr/bin
|
|
||||||
cp -PR checkvm/.libs/vmware-checkvm $INSTALL/usr/bin
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
enable_service open-vm-tools.service
|
enable_service vmtoolsd.service
|
||||||
|
enable_service vmware-vmblock-fuse.service
|
||||||
}
|
}
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=OpenVMTools Server
|
|
||||||
After=xorg-server.service
|
|
||||||
|
|
||||||
ConditionPathExists=/usr/bin/vmware-checkvm
|
|
||||||
ConditionPathExists=/usr/bin/vmtoolsd
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/var/run/vmtoolsd.pid
|
|
||||||
ExecStart=-/bin/sh -c '/usr/bin/vmware-checkvm && /usr/bin/vmtoolsd --background /var/run/vmtoolsd.pid'
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=graphical.target
|
|
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Open Virtual Machine Tools (VMware Tools)
|
||||||
|
ConditionVirtualization=vmware
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/vmtoolsd
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Open Virtual Machine Tools (vmware-vmblock-fuse)
|
||||||
|
ConditionVirtualization=vmware
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
RuntimeDirectory=vmblock-fuse
|
||||||
|
RuntimeDirectoryMode=755
|
||||||
|
ExecStart=/usr/bin/vmware-vmblock-fuse -d -f -o subtype=vmware-vmblock,default_permissions,allow_other /run/vmblock-fuse
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user