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 -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs