from:
#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true


to:

#!/bin/sh
# trim all mounted file systems which support it
if ! /usr/bin/systemd-detect-virt -q -c; then
/sbin/fstrim --all || true
fi

-- 
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

Reply via email to