From: Richard Yann Date: Tue, 4 Oct 2016 12:48:06 +0000 (+0200) Subject: Fix: list all block device from /dev and all symbolic links to block devices X-Git-Tag: v2.29-rc2~19^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=219452a47cc5966df8906a5dbe67250c13cef9a8;p=thirdparty%2Futil-linux.git Fix: list all block device from /dev and all symbolic links to block devices Before fix "fsck -y /d" will never show LVM VG from multipath or mapped devices --- diff --git a/bash-completion/fsck b/bash-completion/fsck index 301bb5d00e..816422f52f 100644 --- a/bash-completion/fsck +++ b/bash-completion/fsck @@ -32,7 +32,7 @@ _fsck_module() return 0 ;; esac - COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) ) + COMPREPLY=( $(compgen -W "$(find -L /dev/ -type b 2>/dev/null)" -- $cur) ) return 0 } complete -F _fsck_module fsck