summaryrefslogtreecommitdiffstats
path: root/bash-completion/mkswap
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:33:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:33:32 +0000
commit8bb05ac73a5b448b339ce0bc8d396c82c459b47f (patch)
tree1fdda006866bca20d41cb206767ea5241e36852f /bash-completion/mkswap
parentAdding debian version 2.39.3-11. (diff)
downloadutil-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.tar.xz
util-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.zip
Merging upstream version 2.40.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'bash-completion/mkswap')
-rw-r--r--bash-completion/mkswap10
1 files changed, 9 insertions, 1 deletions
diff --git a/bash-completion/mkswap b/bash-completion/mkswap
index 61157ef..71ae77e 100644
--- a/bash-completion/mkswap
+++ b/bash-completion/mkswap
@@ -21,13 +21,21 @@ _mkswap_module()
COMPREPLY=( $(compgen -W "$(uuidgen -r)" -- $cur) )
return 0
;;
+ '-o'|'--offset')
+ COMPREPLY=( $(compgen -W "bytes" -- $cur) )
+ return 0
+ ;;
+ '-s'|'--size')
+ COMPREPLY=( $(compgen -W "bytes" -- $cur) )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
esac
case $cur in
-*)
- OPTS="--check --force --pagesize --lock --label --swapversion --uuid --verbose --version --help"
+ OPTS="--check --force --pagesize --lock --label --swapversion --uuid --offset --verbose --version --help --size --file"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;