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
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 "ConditionVirtu alization= !container" in Bionic and late.
and for X by fixing the cron.weekly/fstrim script that way:
#!/bin/sh systemd- detect- virt -q -c; then
# trim all mounted file systems which support it
+if /usr/bin/
+exit 0
+fi
/sbin/fstrim --all || true