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
F107280630: D26939.id88706.diff
Sat, Jan 11, 10:15 PM
Unknown Object (File)
Fri, Jan 10, 6:10 PM
Unknown Object (File)
Mon, Jan 6, 9:48 AM
Unknown Object (File)
Mon, Dec 23, 8:21 AM
Unknown Object (File)
Fri, Dec 13, 7:42 PM
Unknown Object (File)
Dec 10 2024, 11:37 PM
Unknown Object (File)
Nov 21 2024, 3:04 PM
Unknown Object (File)
Nov 17 2024, 5:40 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.