From 42f536ee84fe1f97b9d390b508a23cafb521ed80 Mon Sep 17 00:00:00 2001 From: Andreas Henriksson Date: Thu, 12 Nov 2015 12:36:03 +0100 Subject: bash-completion: fstrim: use mountpoint, not device 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 Signed-off-by: Andreas Henriksson --- bash-completion/fstrim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash-completion/fstrim') 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 } -- cgit v1.2.3-55-g7522