From nobody Fri Nov 14 15:00:52 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d7L1J6xxsz6GZ4q; Fri, 14 Nov 2025 15:00:52 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d7L1J6BXqz3XjH; Fri, 14 Nov 2025 15:00:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763132452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Lb/qMeIT9+VraeNztkYwJaaKWax7Q5i1zjsPUabZ/v4=; b=tsPbI5ju5vRvYPTPTkWOOXP94akZinWoT23peTu8F/dUl9g49zFMrNPxx7awr8Xv1d7VRk Sv1FB0QEAr4sionJVcdEWnEEEs2l/XrSHKkHkzz8VnrQz+joUtkArUEYW3tR8OBMytVpLQ u95qHiexE/US0I9cjJVgVrFCGdeBtCO1RVJvDPlIWns/mAa2GwVgj8z15TNs3Q9qXRPlTK 91HUgNH5UTWaKBHBMYzZoxvgIc3DcgyWXH8An38eWYotTgxwY9rr0jd79RqC51F2SfoToT vhzjNBth0rYYg0dhDLcPTac3gM2+x3sMyAh2nQImb4CjoPiOze88p0R1SqS9qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763132452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Lb/qMeIT9+VraeNztkYwJaaKWax7Q5i1zjsPUabZ/v4=; b=y2TeZkUqLE6rJ1RtCLxUKFo7f+ofJnxKNfWyBKAF0PIV+wecE098U/5L1PR9EQEiGUubGa 6Ev1WbB9HQkh4R8rqsR1DeGwx53vuUenGP1IlUgfIouRBdYXC04Qe9cq74ywknXtnVyIc/ +pQrwm4+vLcm8iGVQLcAr/ZBiSaUW/RC0nrls1je5MFwJ8reKKgv6Y6W3Zpqj5jVGg+3Gs rzDs5YrDN/N9xv+ln2vbp2fndwNtjbpxyiSbRq74Gs/N/ssNA+b3+VMD6CGYMdcDFgNNVM nMRmmFxQa6WRyksosW4KVsRFDOBJNnVx0ENHMJjgBsYzHIL96gwGMrpGkBJiJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763132452; a=rsa-sha256; cv=none; b=KAdc4uTZ2WupduQkpkkrljq8/ObKmNLn60ntTFJ1dGrd7/IbQW5f3xzWl2schESqMNlOdO QQxBZRDAsDG35adT1chVXaJvv7mtA7LrB2ZrT07ouL0L3MOIA/w+CLhMJUm3e5mEidnHFF aouW3rwgOG7DZzz8wrjAsTkXrhOIZBY6UbqNMTvgjacMb4s84QAibdyfLHxOQkroTERgTX jp9nsGMX/zDFxwtQhmPx5Pe+fiLzPzcO12SNI1RFOJYa82oj3LhD6t3OFuiMhfUQNiyitW wZVzIwwWtStZs0p5p7KW+U2qvg/yIeA/xb8cMrePRK6CR8gjEZ5AhJ4liJ5PNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d7L1J5WTwz19xf; Fri, 14 Nov 2025 15:00:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5AEF0qDm007118; Fri, 14 Nov 2025 15:00:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5AEF0qZE007104; Fri, 14 Nov 2025 15:00:52 GMT (envelope-from git) Date: Fri, 14 Nov 2025 15:00:52 GMT Message-Id: <202511141500.5AEF0qZE007104@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 6fb0d67819f7 - main - loader.8: Document module commands List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6fb0d67819f730e8def56e139f780eff3c0cab0f Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=6fb0d67819f730e8def56e139f780eff3c0cab0f commit 6fb0d67819f730e8def56e139f780eff3c0cab0f Author: Alexander Ziaee AuthorDate: 2025-11-14 14:59:09 +0000 Commit: Alexander Ziaee CommitDate: 2025-11-14 15:00:16 +0000 loader.8: Document module commands Begin documenting module loader commands in loader(8), where the reader would look for them. Segregate them by their availability in individual loader implementations, like build(7) targets. These details were graciously donated by kevans. MFC after: 3 days Reviewed by: kevans Co-authored-by: Kyle Evans Differential Revision: https://reviews.freebsd.org/D50727 --- stand/man/loader.8 | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/stand/man/loader.8 b/stand/man/loader.8 index 234eabd571e0..484e0a7b300c 100644 --- a/stand/man/loader.8 +++ b/stand/man/loader.8 @@ -26,7 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 29, 2021 +.Dd November 14, 2025 .Dt LOADER 8 .Os .Sh NAME @@ -89,6 +89,52 @@ The commands common to all interpreters are described in the .Xr loader_simp 8 .Dq BUILTIN COMMANDS section. +.Pp +The following commands are only available in +.Xr loader_lua 8 +and +.Xr loader_4th 8 : +.Pp +.Bl -tag -width indent -compact +.\" sort the following entries according to the second field +.It Ic boot-conf +Load the +.Nm +config and commence the autoboot sequence. +.Pp +.It Ic read-conf Ar file +Load the specified configuration file. +.Pp +.It Ic reload-conf +Revert any previously applied settings, and reload the configuration. +Set comands that were executed at the command line to override variables +previously +.Cm set +by +.Xr loader.conf 5 +configuration will also be reverted, +along with any module options that were toggled. +.Pp +.It Ic enable-module Ar kmod-name +.It Ic disable-module Ar kmod-name +.It Ic toggle-module Ar kmod-name +Enable, disable, or toggle loading of the kernel module named +.Dq Ar kmod-name . +.Pp +.It Ic show-module-options +Describe all modules the +.Nm +is aware of, and show if they are enabled or not. +.El +.Pp +The following command is only available in +.Xr loader_lua 8 : +.Pp +.Bl -tag -width indent -compact +.It Ic disable-device Ar device +Set a newbus hint to disable the +.Ar device . +.El .Ss BUILTIN ENVIRONMENT VARIABLES The environment variables common to all interpreters are described in the .Xr loader_simp 8