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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1589289 Title: fstrim: cannot open /dev/.lxd-mounts: Permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1589289/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
