Skip to content
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

kernel/modules-closure.sh v2: fix the modules closure #69511

Closed
wants to merge 2 commits into from

Conversation

xaverdh
Copy link
Contributor

@xaverdh xaverdh commented Sep 26, 2019

Prior to this commit the modules closure could reference nonsensical
pieces of data in to form of module parameters. These were treated
as seperate modules.

"modprobe --show-depends" outputs a line of the form
"insmod module_name module_args", we are only interested in the
module name, so we extract it with sed.

Also fixes a bug in the original implementation where the check for missing modules did not work as indended (the exit status of
modprobe was ignored due to a pipe).

@xaverdh xaverdh changed the title kernel/modules-closure.sh: fix the modules closure kernel/modules-closure.sh v2: fix the modules closure Sep 26, 2019
Prior to this commit the modules closure could reference nonsensical
pieces of data in to form of module parameters. These were treated
as seperate modules.

"modprobe --show-depends" outputs a line of the form
"insmod module_name module_args", we are only interested in the
module name, so we extract it with sed.

Also fixes a bug in the original implementation where the check for missing modules did not work as indended (the exit status of
modprobe was ignored due to a pipe).
@xaverdh
Copy link
Contributor Author

xaverdh commented Jun 2, 2020

I kind of forgot about this one, although the bug still triggers. Can / should we get more testing for this?

@xaverdh
Copy link
Contributor Author

xaverdh commented Aug 13, 2020

closed in favour of #92081

@xaverdh xaverdh closed this Aug 13, 2020
@xaverdh xaverdh deleted the fix-modules-closure-v2 branch August 13, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants