Comment 11 for bug 1589289

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

Ok more investigation revealed the following

X is using the cron weekly for fstrim, while late version uses fstrim.timer.

So I proposed we fix it with the "ConditionVirtualization=!container" in Bionic and late.

and for X by fixing the cron.weekly/fstrim script that way:

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