From owner-dev-commits-src-main@freebsd.org Mon Feb 8 07:04:58 2021 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CEA05547DCA; Mon, 8 Feb 2021 07:04:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DYxqG5V7Mz4mcG; Mon, 8 Feb 2021 07:04:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AF72D13445; Mon, 8 Feb 2021 07:04:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 11874wep017473; Mon, 8 Feb 2021 07:04:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 11874w7E017472; Mon, 8 Feb 2021 07:04:58 GMT (envelope-from git) Date: Mon, 8 Feb 2021 07:04:58 GMT Message-Id: <202102080704.11874w7E017472@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Daniel Ebdrup Jensen Subject: git: 866c8b8d5ddb - main - kldload(8): Add note about using kld_list in rc.conf(5) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: debdrup X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 866c8b8d5ddb982c2b8139153a4ddfdb2aac3364 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 07:04:58 -0000 The branch main has been updated by debdrup (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=866c8b8d5ddb982c2b8139153a4ddfdb2aac3364 commit 866c8b8d5ddb982c2b8139153a4ddfdb2aac3364 Author: Daniel Ebdrup Jensen AuthorDate: 2021-02-08 06:49:32 +0000 Commit: Daniel Ebdrup Jensen CommitDate: 2021-02-08 06:57:36 +0000 kldload(8): Add note about using kld_list in rc.conf(5) While here, also recommend that loader.conf(5) should only be used in order to get to mountroot, as rc(8) is less fragile, faster, and is easier to fix by booting to single-user mode instead of having to blacklist modules in the loader. MFH: 2 weeks --- sbin/kldload/kldload.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sbin/kldload/kldload.8 b/sbin/kldload/kldload.8 index 9401c22819d5..d95cf1fcdfe9 100644 --- a/sbin/kldload/kldload.8 +++ b/sbin/kldload/kldload.8 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 27, 2017 +.Dd February 8, 2021 .Dt KLDLOAD 8 .Os .Sh NAME @@ -108,6 +108,11 @@ time when the corresponding .Xr rc.conf 5 statement is used. Modules may also be auto-loaded through their addition to +.Xr loader.conf 5 +or kld_list in +.Xr rc.conf 5 . +.Pp +Only modules needed to get to mountroot should be loaded via .Xr loader.conf 5 . .Sh SEE ALSO .Xr kldload 2 ,