From owner-dev-commits-src-all@freebsd.org Mon Feb 8 14:00:33 2021 Return-Path: Delivered-To: dev-commits-src-all@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 F21F0533834; Mon, 8 Feb 2021 14:00:33 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:c2c:26d8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZ72n5jqSz3lLq; Mon, 8 Feb 2021 14:00:33 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id 118E0LkO000171 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 8 Feb 2021 14:00:23 GMT (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: imp@bsdimp.com Received: from [10.58.0.10] (dadv@dadvw [10.58.0.10]) by eg.sd.rdtc.ru (8.16.1/8.16.1) with ESMTPS id 118E07Er033779 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 8 Feb 2021 21:00:07 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: git: 866c8b8d5ddb - main - kldload(8): Add note about using kld_list in rc.conf(5) To: Warner Losh , Daniel Ebdrup Jensen References: <202102080704.11874w7E017472@gitrepo.freebsd.org> Cc: src-committers , "" , dev-commits-src-main@freebsd.org From: Eugene Grosbein Message-ID: Date: Mon, 8 Feb 2021 21:00:03 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, NICE_REPLY_A,SPF_HELO_NONE,T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) * 2.6 LOCAL_FROM From my domains * -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 4DZ72n5jqSz3lLq X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 14:00:34 -0000 08.02.2021 14:12, Warner Losh wrote: > > > On Mon, Feb 8, 2021, 12:05 AM Daniel Ebdrup Jensen > 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 > 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. > > > 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. +1 Plus, Daniel missed two other points: nextboot(8) facility that works with modules loaded with the loader; and possibility to point to alternative location of kernel module with *_name variable documented in the loader.conf(5) manual page. The latter makes it possible to load alternative version of same driver, real example is if_em.ko from base system vs. one from ports that has different code base and set of bugs/features. kld_list cannot do that.