mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-31 02:41:36 +01:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
		
			256 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			256 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   | #!/bin/bash | ||
|  | 
 | ||
|  | /sbin/fstrim -v --all | ||
|  | 
 | ||
|  | # Proxmox container support | ||
|  | if [ -x /usr/sbin/pct ]; then | ||
|  |   for CONTAINER in $(/usr/sbin/pct list | awk '/^[0-9]/ {print $1}'); do | ||
|  |     /sbin/fstrim -v /proc/$(lxc-info -n $CONTAINER -p | awk '{print $2}')/root | ||
|  |   done | ||
|  | fi |