aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stand/lua/core.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index d66d9719fdcb..ccd8213a718d 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -287,6 +287,12 @@ function core.kernelList()
kernels[n] = kernels[n + 1]
end
end
+
+ -- The config/boot bits use the env var as a fallback if the
+ -- menu's kernel selector remains untouched, so we want to
+ -- update our notion of the default kernel to one that is
+ -- actually present.
+ loader.setenv("kernel", kernels[1])
end
core.cached_kernels = kernels