From 8bb05ac73a5b448b339ce0bc8d396c82c459b47f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:33:32 +0200 Subject: Merging upstream version 2.40. Signed-off-by: Daniel Baumann --- bash-completion/mkswap | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bash-completion/mkswap') 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 ;; -- cgit v1.2.3