mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
Revert "loader/lua: Remove pager shim"
This reverts commit8b9178cd0d. Really old loader.efi files persist in the field. Revert this to support it. We need to support this through at least 14.2 now, alas. MFC After: 3 days Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D45881 (cherry picked from commitb38a82c77a)
This commit is contained in:
parent
7a50c3f63f
commit
90ca43b5dc
1 changed files with 12 additions and 0 deletions
|
|
@ -30,6 +30,18 @@ local core = require("core")
|
|||
|
||||
local cli = {}
|
||||
|
||||
if not pager then
|
||||
-- shim for the pager module that just doesn't do it.
|
||||
-- XXX Remove after 12.2 goes EoL.
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue