Skip to content

Comments

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

Closed
xaverdh wants to merge 2 commits intoNixOS:masterfrom
xaverdh:fix-modules-closure-v2
Closed

kernel/modules-closure.sh v2: fix the modules closure#69511
xaverdh wants to merge 2 commits intoNixOS:masterfrom
xaverdh:fix-modules-closure-v2

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 xaverdh force-pushed the fix-modules-closure-v2 branch from e97a382 to a25de74 Compare September 26, 2019 11:56
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Sep 26, 2019
@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

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants