Skip to content

insmod, modinfo, modprobe: support zstd compressed modules #614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion completions/insmod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _insmod()

# do filename completion for first argument
if ((cword == 1)); then
_filedir '@(?(k)o?(.[gx]z))'
_filedir '@(?(k)o?(.[gx]z|.zst))'
else # do module parameter completion
COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \
-p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur"))
Expand Down
2 changes: 1 addition & 1 deletion completions/modinfo
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _modinfo()

# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
_filedir '@(?(k)o?(.[gx]z))'
_filedir '@(?(k)o?(.[gx]z|.zst))'
else
_modules $version
fi
Expand Down
2 changes: 1 addition & 1 deletion completions/modprobe
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ _modprobe()
insert)
# do filename completion if we're giving a path to a module
if [[ $cur == @(*/|[.~])* ]]; then
_filedir '@(?(k)o?(.[gx]z))'
_filedir '@(?(k)o?(.[gx]z|.zst))'
elif [[ -n $module ]]; then
# do module parameter completion
if [[ $cur == *=* ]]; then
Expand Down