From 2cdaf94b55bd862fc01c76f0e8cb39e68d8f89f9 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 13 Apr 2017 18:09:23 +0100 Subject: partx: add --list-types option Use libblkid as the source of truth what partition type names exist, and are supported. Signed-off-by: Sami Kerola --- bash-completion/partx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash-completion') diff --git a/bash-completion/partx b/bash-completion/partx index 921666274..929000013 100644 --- a/bash-completion/partx +++ b/bash-completion/partx @@ -27,8 +27,7 @@ _partx_module() return 0 ;; '-t'|'--type') - # FIXME: some command should list type libblkid knows. - COMPREPLY=( $(compgen -W "aix bsd dos gpt mac minix PMBR sgi solaris sun ultrix unixware" -- $cur) ) + COMPREPLY=( $(compgen -W "$(partx --list-types)" -- $cur) ) return 0 ;; '-h'|'--help'|'-V'|'--version') @@ -50,6 +49,7 @@ _partx_module() --raw --sector-size --type + --list-types --verbose --help --version -- cgit v1.2.3-55-g7522