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
RFC: Reimplemented functionality for handling Kernel modules loaded on boot #131
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4c4ff0e
Reimplemented functionality for handling Kernel modules loaded on boot
kobliha ed172c6
Other than *.conf files are ignored
kobliha a9ac201
Added missing Makefile
kobliha 0cde835
CONSTANT-ized to cleanup the API
kobliha e38ccae
Updated according to comments
kobliha bd1a6a2
Enhanced tests
kobliha bd36fb9
Do not rewrite config file if configuration is not changed
kobliha 56a128f
API Cleanup
kobliha 2a38dde
Added changes file entry + new version
kobliha 125b349
Added 'grep' into BuildRequires
kobliha 22b0153
Adapted old test for Kernel library
kobliha 205b3d5
A bit simplified test
kobliha File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Makefile.am for yast2/library/system | ||
|
||
SUBDIRS = doc src testsuite | ||
SUBDIRS = doc src testsuite test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
TESTS = \ | ||
kernel_test.rb | ||
|
||
TEST_EXTENSIONS = .rb | ||
RB_LOG_COMPILER = rspec | ||
VERBOSE = 1 | ||
EXTRA_DIST = $(TESTS) |
10 changes: 10 additions & 0 deletions
10
library/system/test/data/modules.d/MODULES_LOADED_ON_BOOT.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# These kernel modules will be loaded on boot | ||
# One module per line | ||
# | ||
|
||
# Some comment | ||
module-a | ||
|
||
# Another comment | ||
module-b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Whatever is here | ||
must not be loaded | ||
as a kernel | ||
module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
user-module-1 | ||
user-module-2 | ||
|
||
# User comment | ||
# on several | ||
# lines | ||
user-module-3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
user-module-4 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is confusing form me. Empty value is
nil
or{@modules_conf_file => []}
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.
No,
nil
is always the initial state of the variable. Later I also test whether it'snil
- in that case, all data are loaded from disk.