git: bce728719e7f - main - Add paragraph documenting loader.env functionlity

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Mon, 06 Nov 2023 12:22:15 UTC
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/src/commit/?id=bce728719e7f57272d99b6d039f10b4c636fa024

commit bce728719e7f57272d99b6d039f10b4c636fa024
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2023-11-06 12:11:26 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-11-06 12:21:53 +0000

    Add paragraph documenting loader.env functionlity
    
    Approved by:            docs (carlavilla)
    Differential Revision:  https://reviews.freebsd.org/D42476
---
 stand/man/loader.efi.8 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/stand/man/loader.efi.8 b/stand/man/loader.efi.8
index 37f56cf7be3f..16165c68556b 100644
--- a/stand/man/loader.efi.8
+++ b/stand/man/loader.efi.8
@@ -205,6 +205,14 @@ does not implement the probe
 .Fl P
 functionality where we use the video console if a keyboard is connected and a
 serial console otherwise.
+.Ss Additional Environment Variables
+.Nm
+loads some extra variables early in startup from
+.Pa /efi/freebsd/loader.env
+from the EFI partition. Only simple variables can be set here. It can be useful to specify the root filesystem:
+.Bd -literal -offset indent
+rootdev=disk0s1a
+.Ed
 .Ss Staging Slop
 The kernel must parse the firmware memory map tables to know what memory
 it can use.