| Main index | Section 8 | 日本語 | Options |
The following options are available:
| | |
| Remove the specified paths from the module search path. | |
| | |
| Do not fail if a path specified for adding is already present in the search path, or if a path specified for removing is not present in the search path. This may be useful in startup/shutdown scripts for adding a path to a file system which is still not mounted, or in shutdown scripts for unconditionally removing a path that may have been added during startup. | |
| | |
| Add the specified paths to the beginning of the search path, not to the end. This option can only be used when adding paths. | |
| | |
| Instead of replacing the module search path with the set of paths specified, "merge" in the new entries. | |
| | |
| Do not actually change the module search path. | |
| | |
| Display the current search path. This option cannot be used if any paths are also specified. | |
| | |
| Specify the sysctl name to use instead of the default kern.module_path. | |
| | |
|
"Unique-ify"
the current search path - if any of the directories is repeated one
or more times, only the first occurrence remains.
This option implies
| |
| | |
|
Verbose output: display the new module search path.
If the path has been changed, and the
| |
| /boot/kernel, /boot/modules, /modules | |
| The default module search path used by the kernel. | |
$ kldconfig -r /boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays
Try to delete the /boot directory from the search path. The command will fail:
$ kldconfig -d /boot kldconfig: not in module search path: /boot $ echo $? 1
Same as above but forcing the operation. This time the command will succeed:
$ kldconfig -d -f /boot $ echo $? 0
Add the /boot directory to the beginning of the search path and display extra verbose output:
$ kldconfig -i -m -vv /boot /boot/kernel;/boot/modules -> /boot;/boot/kernel;/boot/modules
Without
$ kldconfig -i -vv /boot /boot;/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays -> /boot
Same as above but using
$ kldconfig -i -n -vv /boot /boot;/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays -> /boot
Add directories to the search path removing duplicates.
Note the need of
$ kldconfig -f -U /boot/kernel /boot/kernel /boot/modules /boot/dtb /boot/dtb/overlays
| KLDCONFIG (8) | September 29, 2020 |
| Main index | Section 8 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
