From 710f04079e79303111b5c0190c5a667bdea0ae9f Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 15 Feb 2021 13:01:30 +0100 Subject: [PATCH] open-vm-tools: enable deploypkg plugin Enable support functions for guest package deployment. Signed-off-by: Florian Eckert --- utils/open-vm-tools/Makefile | 10 ++++++++-- utils/open-vm-tools/files/telinit | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 utils/open-vm-tools/files/telinit diff --git a/utils/open-vm-tools/Makefile b/utils/open-vm-tools/Makefile index 406fe6e4b0..72b1f4dfe4 100644 --- a/utils/open-vm-tools/Makefile +++ b/utils/open-vm-tools/Makefile @@ -35,7 +35,11 @@ endef define Package/open-vm-tools $(call Package/open-vm-tools/Default) - DEPENDS:=@TARGET_x86 +glib2 +libpthread +libtirpc + DEPENDS:=@TARGET_x86 \ + +glib2 \ + +libpthread \ + +libtirpc \ + +libmspack TITLE:=open-vm-tools URL:=https://github.com/vmware/open-vm-tools MAINTAINER:=Yuhei OKAWA @@ -68,7 +72,6 @@ CONFIGURE_ARGS+= \ --without-pam \ --disable-grabbitmqproxy \ --disable-vgauth \ - --disable-deploypkg \ --without-root-privileges \ --without-kernel-modules \ --without-dnet \ @@ -105,11 +108,13 @@ define Package/open-vm-tools/install $(INSTALL_DIR) $(1)/sbin/ $(INSTALL_BIN) ./files/shutdown $(1)/sbin/ + $(INSTALL_BIN) ./files/telinit $(1)/sbin/ $(INSTALL_DIR) $(1)/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libguestlib.so* $(1)/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhgfs.so* $(1)/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvmtools.so* $(1)/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libDeployPkg.so* $(1)/lib/ $(INSTALL_DIR) $(1)/usr/lib/open-vm-tools/plugins/common/ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/common/libhgfsServer.so $(1)/usr/lib/open-vm-tools/plugins/common/ @@ -120,6 +125,7 @@ define Package/open-vm-tools/install $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libpowerOps.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libtimeSync.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libvmbackup.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/ + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/open-vm-tools/plugins/vmsvc/libdeployPkgPlugin.so $(1)/usr/lib/open-vm-tools/plugins/vmsvc/ $(INSTALL_DIR) $(1)/etc/hotplug.d/block/ $(INSTALL_BIN) ./files/vmware-scsi.hotplug $(1)/etc/hotplug.d/block/80-vmware-scsi diff --git a/utils/open-vm-tools/files/telinit b/utils/open-vm-tools/files/telinit new file mode 100644 index 0000000000..3fa1c3c40b --- /dev/null +++ b/utils/open-vm-tools/files/telinit @@ -0,0 +1,4 @@ +#!/bin/sh +#compatibility script for traditional customization + +/sbin/reboot