Summary: | FEATURE IDEA: implement module_disable=YES in /boot/loader.conf file | ||
---|---|---|---|
Product: | Base System | Reporter: | Slawomir Wojciech Wojtczak <vermaden> |
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Feedback Timeout | ||
Severity: | Affects Many People | CC: | allanjude |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Slawomir Wojciech Wojtczak
2020-06-10 10:06:49 UTC
The loader.conf variables are not read by the kernel, but by the loader scripting language, and used to load modules. You can disable some hardware using the device.hints file, but that won't disable the code in the kernel, just keep it from attaching to the hardware. There is a version of the kernel, called MINIMAL, that moves as much as possible out of GENERIC, and uses the 'devmatch' tool to load the drivers for all of the hardware that is detected on your system. With some more polish, this could replace GENERIC and achieve your goal. |