aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2025-09-28 19:19:29 +0000
committerWarner Losh <imp@FreeBSD.org>2025-09-29 01:45:01 +0000
commitebc32e74b6f98a6f2b9ed7cba0078cd64d48701f (patch)
treecb7f98341aea04cfb26017c251c073508598fb6f
parentb7473a5d68b8ade1ce6c6c08965fe284cc70bd75 (diff)
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
-rw-r--r--stand/lua/core.lua2
1 files changed, 1 insertions, 1 deletions
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()