mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
10
roles/common/files/fstrim_all
Normal file
10
roles/common/files/fstrim_all
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
Reference in New Issue
Block a user