diff options
author | Sami Kerola | 2017-04-13 19:09:23 +0200 |
---|---|---|
committer | Sami Kerola | 2017-05-03 00:22:04 +0200 |
commit | 2cdaf94b55bd862fc01c76f0e8cb39e68d8f89f9 (patch) | |
tree | b80988da4fa694e393ce3642844fcede0a5fb14f /bash-completion | |
parent | libblkid: add blkid_partitions_get_name() (diff) | |
download | kernel-qcow2-util-linux-2cdaf94b55bd862fc01c76f0e8cb39e68d8f89f9.tar.gz kernel-qcow2-util-linux-2cdaf94b55bd862fc01c76f0e8cb39e68d8f89f9.tar.xz kernel-qcow2-util-linux-2cdaf94b55bd862fc01c76f0e8cb39e68d8f89f9.zip |
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 <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/partx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |