diff options
| author | Sami Kerola <kerolasa@iki.fi> | 2014-10-26 22:07:08 +0000 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2014-10-31 10:39:00 +0100 |
| commit | 53154dae39cd16924c97754589ed5396a91946bd (patch) | |
| tree | 2db36d7308a6b16abcf570fba3b435517c63b334 /bash-completion/blockdev | |
| parent | b35c37274c93745fd8d7a05d02a85fbde8110ab0 (diff) | |
| download | util-linux-53154dae39cd16924c97754589ed5396a91946bd.tar.gz | |
bash-completion: stop being clever when listing block devices
Various commands such as blkid, cfdisk, fdisk, delpart, and so on listed
only partitions and missed for example disks and volume groups. The
right thing to do is to list all block devices in all for all commands
performing operations with them. This might occasionally list unexpected
devices that I think is lesser bad than missing some.
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764488
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion/blockdev')
| -rw-r--r-- | bash-completion/blockdev | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/blockdev b/bash-completion/blockdev index ce986cb45f..8050c0f839 100644 --- a/bash-completion/blockdev +++ b/bash-completion/blockdev @@ -4,7 +4,7 @@ _blockdev_module() COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - while read dev; do DEVS+="$dev " ; done < <(lsblk -pnro name) + DEVS="$(lsblk -pnro name)" OPTS="-h -V -q --report --getsz |
