The branch main has been updated by imp:

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

commit ebc32e74b6f98a6f2b9ed7cba0078cd64d48701f
Author:     Warner Losh <[email protected]>
AuthorDate: 2025-09-28 19:19:29 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2025-09-29 01:45:01 +0000

    core.lua: Consistently check for single user
    
    While boot_single:lower() should always be in {yes,no}, it might not
    be. In one place we check == yes, and another ~= no. Make both places ~=
    no for consistency. We generally try to test != default.
    
    Sponsored by:           Netflix
---
 stand/lua/core.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index f42be6fbebb7..ad417e5f97e5 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -413,7 +413,7 @@ end
 
 function core.isSingleUserBoot()
        local single_user = loader.getenv("boot_single")
-       return single_user ~= nil and single_user:lower() == "yes"
+       return single_user ~= nil and single_user:lower() ~= "no"
 end
 
 function core.isUEFIBoot()

Reply via email to