Page MenuHomeFreeBSD

provide easy way to disable kld_list loading
ClosedPublic

Authored by imp on Oct 25 2020, 6:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 29, 9:53 AM
Unknown Object (File)
Sat, Jul 26, 1:14 AM
Unknown Object (File)
Thu, Jul 24, 7:25 PM
Unknown Object (File)
Wed, Jul 23, 10:52 PM
Unknown Object (File)
Sat, Jul 19, 1:53 AM
Unknown Object (File)
Mon, Jul 7, 2:13 AM
Unknown Object (File)
Jul 3 2025, 9:23 PM
Unknown Object (File)
Jun 25 2025, 8:42 AM
Subscribers

Details

Summary

set kld_disbale=y or any value in the boot loader and that will
disable loading of the kld_list.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34373
Build 31483: arc lint + arc unit

Event Timeline

imp requested review of this revision.Oct 25 2020, 6:26 AM
imp created this revision.

I wonder if this could be added/hooked up to the 'safe mode' option in the loader menu, to provide a nice user-interface for it.

libexec/rc/rc.d/kld
44

Doesn't this need to be:

[ -z "$(kenv -q kld_disable 2>/dev/null)" ] || return

to actually run the command?

libexec/rc/rc.d/kld
44

Yup. You're right.

This revision was not accepted when it landed; it landed in state Needs Review.May 5 2021, 9:22 PM
This revision was automatically updated to reflect the committed changes.