summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash-completion/fstrim2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/fstrim b/bash-completion/fstrim
index 7d3cde9df..726ddd905 100644
--- a/bash-completion/fstrim
+++ b/bash-completion/fstrim
@@ -27,7 +27,7 @@ _fstrim_module()
;;
esac
local MPOINTS
- MPOINTS=$(findmnt -rno SOURCE | grep ^/dev)
+ MPOINTS=$(findmnt -rno SOURCE,TARGET | awk '/^\/dev/{print $2}')
COMPREPLY=( $(compgen -W "$MPOINTS" -- $cur) )
return 0
}