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
F147328041: D26939.id83722.diff
Tue, Mar 10, 12:45 AM
Unknown Object (File)
Sat, Mar 7, 11:17 AM
Unknown Object (File)
Sun, Mar 1, 8:38 PM
Unknown Object (File)
Wed, Feb 25, 9:06 PM
Unknown Object (File)
Tue, Feb 24, 10:19 PM
Unknown Object (File)
Tue, Feb 24, 12:52 AM
Unknown Object (File)
Tue, Feb 17, 9:12 AM
Unknown Object (File)
Tue, Feb 17, 6:10 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36912
Build 33801: 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.