Comment 10 for bug 1589289

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