git: 866c8b8d5ddb - main - kldload(8): Add note about using kld_list in rc.conf(5)

Warner Losh imp at bsdimp.com
Mon Feb 8 07:12:41 UTC 2021


On Mon, Feb 8, 2021, 12:05 AM Daniel Ebdrup Jensen <debdrup at freebsd.org>
wrote:

> 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 <debdrup at FreeBSD.org>
> AuthorDate: 2021-02-08 06:49:32 +0000
> Commit:     Daniel Ebdrup Jensen <debdrup at FreeBSD.org>
> 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.
>

I'm not sure this is good advice. The only modules that are fragile are 3rd
party things like drm. It's no less hard to fix by unloading in the loader
or fixing in single user. The speed difference is true, but unless the
modules are huge, it isn't much.

Warner

    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 ,
>


More information about the dev-commits-src-main mailing list