Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2021 21:21:17 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d00aff627828 - main - provide easy way to disable kld_list loading
Message-ID:  <202105052121.145LLHem068684@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=d00aff627828ef69d7333537e3a81b47bfa1a8e8

commit d00aff627828ef69d7333537e3a81b47bfa1a8e8
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2020-10-25 06:22:43 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-05-05 21:19:41 +0000

    provide easy way to disable kld_list loading
    
    set kld_disbale=y or any value in the boot loader and that will
    disable loading of the kld_list.
    
    Differential Revision: https://reviews.freebsd.org/D26939
---
 libexec/rc/rc.d/kld | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libexec/rc/rc.d/kld b/libexec/rc/rc.d/kld
index d3829efe824a..e9a8e6d37a08 100755
--- a/libexec/rc/rc.d/kld
+++ b/libexec/rc/rc.d/kld
@@ -41,6 +41,7 @@ stop_cmd=':'
 kld_start()
 {
 	[ -n "$kld_list" ] || return
+	[ -z "$(kenv -q kld_disable 2>/dev/null)" ] || return
 
 	local _kld
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105052121.145LLHem068684>