From owner-dev-commits-src-all@freebsd.org Mon Feb 8 07:12:41 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 E6106547DFF for ; Mon, 8 Feb 2021 07:12:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DYy0961Wqz4mr3 for ; Mon, 8 Feb 2021 07:12:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72b.google.com with SMTP id h8so3218251qkk.6 for ; Sun, 07 Feb 2021 23:12:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NWNwJTkUHjFZeAP9sTP37Il/zdakeFw3hw66o6KcSSc=; b=kc1hkAIYJutuFxQaj4ZzOevtt5wRkwNYkK0EYu1WmkOyQizJ6005U8HtV6x6Y7/rOl IJ4W7Lq+M5f4+IwozWGaKOpbl/lpFUCTC4CWN/uDZYqYfY1/aXbtG8Tyo1270zCtqHqP BV7LgQ18tNMxuPAVTm4yrJsmGIOmZO1np76FYn29DAle8fS1dtGHeqLi6umDQ90LR7Eh rpNVq8FxKP923jVAntW7Qk9bXfCWYtLHXUysZSV3MZfoTk/zBL4A7pa5//jQtE/ME3zM cKudzXjpS5Dm8stV8Wuc0uQ5KesBGj8nHI5dfshzvSteBTTRYNldzf2lV6FgoG4KevCP 3Etg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NWNwJTkUHjFZeAP9sTP37Il/zdakeFw3hw66o6KcSSc=; b=EoA544zlYGzTsrVKNAa8vTmJReGipeT0dpZYcWA6yUUlg/7mFLZdfslGY/sAb2Zq2N XuIUyaG5+BIzo1D7mG6xgr5+HVzxecwNAhNfurhDHZVlIcIyOXpLyEPNP/17fyCK8t+F 6tbCp1UKR9VhxLJABNFUV4rgvXfgANziF4Gxi1hE3k+jNhWwQhYElT3swHjQPVmF1xXi 4C3JXFQL3epjmp1CorweBpGmv8czV/S9dRBGGE5WG4yCcqJy9r1xpWxMBk8VzZAgO6Qj fT1iWGq7Tg5xYiqjEIQ6q3t8AeL5DKkCmgXjWq8yhdeYQJS2y4U5tjdtnDxXk8h/VANj RX9g== X-Gm-Message-State: AOAM532Nt8Kg4gMda9I7lYf0gAVULzypEUG9fb/9IAdSJswYwsgSvU5l yPOoBpVHAWdSPjAD7Zibtlhu+XReskSIW/5pG0u8Og== X-Google-Smtp-Source: ABdhPJw5s7so3o09PnbOTHp7I82E6KlXvm1mjJ4tJmhf3DtwPSOOLctvwdqpF1Yq5v7JM1fAuI4QMl6whOFJvubnv9E= X-Received: by 2002:a37:ad1:: with SMTP id 200mr16132228qkk.195.1612768360806; Sun, 07 Feb 2021 23:12:40 -0800 (PST) MIME-Version: 1.0 References: <202102080704.11874w7E017472@gitrepo.freebsd.org> In-Reply-To: <202102080704.11874w7E017472@gitrepo.freebsd.org> From: Warner Losh Date: Mon, 8 Feb 2021 00:12:29 -0700 Message-ID: Subject: Re: git: 866c8b8d5ddb - main - kldload(8): Add note about using kld_list in rc.conf(5) To: Daniel Ebdrup Jensen Cc: src-committers , "" , dev-commits-src-main@freebsd.org X-Rspamd-Queue-Id: 4DYy0961Wqz4mr3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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 07:12:42 -0000 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. 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 , >