Comment 5 for bug 1652622

Revision history for this message
Eric Desrochers (slashd) wrote :

or even better I think:

#!/bin/sh
# trim all mounted file systems which support it
+if /usr/bin/systemd-detect-virt -q -c; then
+exit 0
+fi
/sbin/fstrim --all || true