Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 2026 15:08:49 +0000
From:      Benedict Reuschling <bcr@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Paarth Shirsat <paarthshirsat123@gmail.com>
Subject:   git: ed82c433efee - main - Revert "loader.efi(8): Document LoaderEnv and NextLoaderEnv EFI variables"
Message-ID:  <69ecd901.3bdaf.33dd995a@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bcr:

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

commit ed82c433efee1080fc5587325754afd6fcabd5d6
Author:     Paarth Shirsat <paarthshirsat123@gmail.com>
AuthorDate: 2026-04-25 15:06:39 +0000
Commit:     Benedict Reuschling <bcr@FreeBSD.org>
CommitDate: 2026-04-25 15:08:17 +0000

    Revert "loader.efi(8): Document LoaderEnv and NextLoaderEnv EFI variables"
    
    This reverts commit cf7d4b04e9ae890f2a0f5811234e926f75a0c237.
    
    I attributed the wrong author of the patch.
---
 stand/man/loader.efi.8 | 41 ++++-------------------------------------
 1 file changed, 4 insertions(+), 37 deletions(-)

diff --git a/stand/man/loader.efi.8 b/stand/man/loader.efi.8
index 32729ff519a2..8bb88dd2e24f 100644
--- a/stand/man/loader.efi.8
+++ b/stand/man/loader.efi.8
@@ -217,47 +217,14 @@ functionality where we use the video console if a keyboard is connected and a
 serial console otherwise.
 .Ss Additional Environment Variables
 .Nm
-can set variables early in startup from a file on the EFI partition.
-By default, that file is
-.Pa /efi/freebsd/loader.env .
-It can be changed by setting the FreeBSD EFI variable
-.Va LoaderEnv ,
-as in:
-.Bd -literal -offset indent
-echo -n /efi/freebsd/alt.env | efivar -w -t 7 \\
-    -n cfee69ad-a0de-47a9-93a8-f63106f8ae99-LoaderEnv
-.Ed
-.Pp
-After that is executed, the file
-.Pa /efi/freebsd/alt.env
-is used instead of
-.Pa /efi/freebsd/loader.env .
-See
-.Xr efivar 8
-for more information on setting EFI variables.
-.Pp
-The EFI variable
-.Va NextLoaderEnv
-can be set to the pathname of a second startup file.
-That variable is deleted immediately after its value is retrieved,
-so setting it will affect only the next boot attempt.
-For either variable, a missing file is silently ignored.
-.Pp
-Only simple variables can be set in the startup file.
+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
-.Pp
-The startup file contains a series of assignments separated by spaces,
-tabs, or newlines.
-Quotes are not given any special treatment.
-If no
-.Li =value
-is given, the value
-.Li 1
-is used.
-Invalid syntax and the like are silently ignored.
 .Ss Staging Slop
 The kernel must parse the firmware memory map tables to know what memory
 it can use.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69ecd901.3bdaf.33dd995a>