Page MenuHomeFreeBSD

D45881.id140584.diff
No OneTemporary

D45881.id140584.diff

diff --git a/stand/lua/cli.lua b/stand/lua/cli.lua
--- a/stand/lua/cli.lua
+++ b/stand/lua/cli.lua
@@ -30,6 +30,18 @@
local cli = {}
+if not pager then
+ -- shim for the pager module that just doesn't do it.
+ -- XXX Remove after 12.2 goes EoL.... but not before 14.2
+ pager = {
+ open = function() end,
+ close = function() end,
+ output = function(str)
+ printc(str)
+ end,
+ }
+end
+
-- Internal function
-- Parses arguments to boot and returns two values: kernel_name, argstr
-- Defaults to nil and "" respectively.
diff --git a/stand/lua/core.lua b/stand/lua/core.lua
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -536,6 +536,18 @@
end
end
+if not pager then
+ print("**********************************************************************")
+ print("**********************************************************************")
+ print("***** *****")
+ print("***** *****")
+ print("***** BOOT LOADER IS TOO OLD. PLEASE UPGRADE. *****")
+ print("***** *****")
+ print("***** *****")
+ print("**********************************************************************")
+ print("**********************************************************************")
+end
+
recordDefaults()
hook.register("config.reloaded", core.clearCachedKernels)
return core

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 16, 5:09 AM (5 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29690311
Default Alt Text
D45881.id140584.diff (1 KB)

Event Timeline