mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-11-04 03:59:14 +00:00 
			
		
		
		
	added poweroff.sh for pkg/open-vm-tools to allow shutdown from hypervisor
Signed-off-by: Isaac Rodman <isaac@eyz.us>
This commit is contained in:
		@@ -13,4 +13,7 @@ ENTRYPOINT []
 | 
			
		||||
CMD []
 | 
			
		||||
WORKDIR /
 | 
			
		||||
COPY --from=mirror /out/ /
 | 
			
		||||
COPY scripts /etc/vmware-tools/scripts
 | 
			
		||||
CMD ["/usr/bin/vmtoolsd"]
 | 
			
		||||
 | 
			
		||||
LABEL org.mobyproject.config='{"pid": "host", "capabilities": ["CAP_SYS_BOOT"]}'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								pkg/open-vm-tools/scripts/poweroff-vm-default.d/poweroff.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								pkg/open-vm-tools/scripts/poweroff-vm-default.d/poweroff.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
# send SIGTERM to the init system (PID 1), which causes a clean VM host-initiated shutdown
 | 
			
		||||
kill -s SIGTERM 1
 | 
			
		||||
exit 0
 | 
			
		||||
		Reference in New Issue
	
	Block a user