Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
256 B

#!/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