Comments (2)
When using multiple softdep for a module, only one of them have effects
that's correct. The config parsing in kmod is designed so one config overrides a previously set one.
user configured softdeps in /etc/modprobe.d will just be ignored, making it effectively non-user configurable. I think this is undesirable.
that would be a bug... we should be respecting the precedence order as per MODPROBE.D(5) :
/lib/modprobe.d/.conf
/usr/local/lib/modprobe.d/.conf
/run/modprobe.d/.conf
/etc/modprobe.d/.conf
... with the latest files overriding what is set in the previous ones.
Improvements we could add to kmod:
- Define a different syntax to extend a previous setting. so it does what you were expecting. systemd's units use a
+=
for that. We could do something similar - Allow a setting to be removed (i.e. it should be possible to set a softdep to "empty" after it has been set by another file).
Thoughts?
from kmod.
that would be a bug...
ok then I suppose I am hitting this bug then. In lib/modules/<kernel ver>/modules.softdep
I have:
softdep nvidia pre: ecdh_generic,ecdsa_generic
and in /etc/modprobe.d/abc.conf
I have:
softdep nvidia post: nvidia-uvm
The latter has no effect.
I also found many modules are using softdep
"wrong", for example in modules.softdep
I saw:
softdep btrfs pre: blake2b-256
softdep btrfs pre: sha256
softdep btrfs pre: xxhash64
softdep btrfs pre: crc3
I found it hard to believe btrfs wrote all these just to load crc3
.
from kmod.
Related Issues (20)
- testsuite: Allow to run tests under a vm
- depmod: Use O_TMPFILE for temporary file creation
- Add importer script from mailing list
- Add scheduled CI runs for importing patches
- Add ABI testing as part of the CI
- Import and update shell completions
- Update the utilities' --help against the accepted options HOT 1
- Update the man pages against the respective tool
- Add command for signing module
- Drop NOFAIL/fatal() calls and properly handle errors
- CI: Add coverage report
- config: move config handling to shared/
- Better API for module info
- Move symbols to the correct sym version HOT 2
- Fix testsuite with musl HOT 1
- testsuite fails for `test-user`
- Add usage example to the help info HOT 10
- Add github action to apply patches HOT 1
- kmod-33: FAIL testsuite/test-user HOT 3
- depmod fallouts from module-directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kmod.