Comment 8 for bug 1589289

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

We could also implement a check mechanism inside "/etc/cron.weekly/fstrim" using'systemd-detect-virt', if it's a container don't run it, otherwise let's do it.

[/etc/cron.weekly/fstrim] # script as-is
#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true