Giter Club home page Giter Club logo

Comments (2)

lucasdemarchi avatar lucasdemarchi commented on August 24, 2024

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:

  1. 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
  2. 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.

yshui avatar yshui commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.