fstrim takes mountpoint as argument but the bash completion was completing it to a device node. Addresses: http://bugs.debian.org/804833 Reported-by: Ritesh Raj Sarraf <rrs@xxxxxxxxxx> Signed-off-by: Andreas Henriksson <andreas@xxxxxxxx> --- bash-completion/fstrim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-completion/fstrim b/bash-completion/fstrim index 7d3cde9..726ddd9 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 } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html