-
Notifications
You must be signed in to change notification settings - Fork 150
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
find_module:fix a mistake for kernel with modules uncompressed #442
Conversation
I guess you didn't test this merge request at all, right?
You have an extra " |
It doesn't hurt to add Anyway, please fix the command and we can merge. Thanks. |
dkms.in
Outdated
@@ -228,7 +228,7 @@ find_module() | |||
{ | |||
# tree = $1 | |||
# module = $2 | |||
find "$1" -name "$2$module_uncompressed_suffix" -o -name "$2$module_suffix" -type f | |||
find "$1" -name "$2$module_uncompressed_suffix" -type -f -o -name "$2$module_suffix" -type f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the first dash as -type f
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.I also corrected the commit information.
5bf360e
to
0384051
Compare
My mistake,I was too careless. Thanks for pointing it out,I've already made the changes. |
Thanks for your help, I've already fix the command. |
fd7b339
to
1cfca90
Compare
For kernel with modules uncompressed,dkms find_module()'s command: find "$1" -name "$2$module_uncompressed_suffix" -o -name "$2$module_suffix" -type f actually turns out to be: `find /lib/modules/[kerv] -name [module_name].ko -o -name [module_name].ko -type f` the "-type f" is used to include only for regular file, but with the command above, it only takes effect for the lastest "-name" match,and will get the symbolic files (are usually the symbolic files for weak_modules in /lib/*/weak-updates directory) by mistake. For kernel with modules compressed the command turns out to be like: `find /lib/modules/[kerv] -name [module_name].ko -o -name [module_name].ko.xz -type f` All the modules are with suffix ".xz",the first "-name" match actually do nothing so it's get nothing wrong. Fix it by adding "-type f" param after each "-name" option.
1cfca90
to
6ad37dc
Compare
For kernel with modules uncompressed,dkms find_module()'s command: find "$1" -name "$2$module_uncompressed_suffix" -o -name "$2$module_suffix" -type f actually turns out to be:
find /lib/modules/[kerv] -name [module_name].ko -o -name [module_name].ko -type -f
the "type -f" is used to include only for regular file, but with the command above, it only takes effect for the lastest "-name" match,and will get the symbolic files (are usually the symbolic files for weak_modules in /lib/*/weak-updates directory) by mistake.
For kernel with modules compressed the command turns out to be like:
find /lib/modules/[kerv] -name [module_name].ko -o -name [module_name].ko.xz -type -f
All the modules are with suffix ".xz",the first "-name" match actually do nothing so it's get nothing wrong.Fix it by adding "-type -f" param after each "-name" option.