File boo1190929-9af4afd0.patch of Package bash-completion
From: Werner Fink <werner@suse.de>
Date: Mon, 04 Oct 2021 15:38:08 +0200
Subject: Also support .bz2 compressed kernel modules
---
completions/insmod | 2 +-
completions/modinfo | 2 +-
completions/modprobe | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/completions/insmod b/completions/insmod
--- a/completions/insmod
+++ b/completions/insmod
@@ -7,7 +7,7 @@ _comp_cmd_insmod()
# do filename completion for first argument
if ((cword == 1)); then
- _comp_compgen_filedir '@(?(k)o?(.[gx]z|.zst))'
+ _comp_compgen_filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
else # do module parameter completion
_comp_compgen_split -- "$(PATH="$PATH:/sbin" modinfo \
-p "${words[1]}" 2>/dev/null | cut -d: -f1)"
diff --git a/completions/modinfo b/completions/modinfo
--- a/completions/modinfo
+++ b/completions/modinfo
@@ -43,7 +43,7 @@ _comp_cmd_modinfo()
# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
- _comp_compgen_filedir '@(?(k)o?(.[gx]z|.zst))'
+ _comp_compgen_filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
else
_comp_compgen_kernel_modules "$version"
fi
diff --git a/completions/modprobe b/completions/modprobe
--- a/completions/modprobe
+++ b/completions/modprobe
@@ -83,7 +83,7 @@ _comp_cmd_modprobe()
insert)
# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
- _comp_compgen_filedir '@(?(k)o?(.[gx]z|.zst))'
+ _comp_compgen_filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
elif [[ $module ]]; then
# do module parameter completion
if [[ $cur == *=* ]]; then