git: 25cf4c045208 - stable/14 - Add paragraph documenting loader.env functionlity

From: Warner Losh <>
Date: Tue, 16 Apr 2024 02:34:35 UTC
The branch stable/14 has been updated by imp:


commit 25cf4c045208aff47ae7fece8ccc2717f0c0ad6a
Author:     Guido Falsi <>
AuthorDate: 2023-11-06 12:11:26 +0000
Commit:     Warner Losh <>
CommitDate: 2024-04-16 02:32:03 +0000

    Add paragraph documenting loader.env functionlity
    Approved by:            docs (carlavilla)
    Differential Revision:
    (cherry picked from commit bce728719e7f57272d99b6d039f10b4c636fa024)
 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
+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
 .Ss Staging Slop
 The kernel must parse the firmware memory map tables to know what memory
 it can use.