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
from:
#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true
to:
#!/bin/sh systemd- detect- virt -q -c; then
# trim all mounted file systems which support it
if ! /usr/bin/
/sbin/fstrim --all || true
fi