Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2024 14:50:27 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 90ca43b5dcf0 - stable/14 - Revert "loader/lua: Remove pager shim"
Message-ID:  <202408011450.471EoRv5049460@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by imp:

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

commit 90ca43b5dcf0fbf6f28447a09aaee78ec3716d36
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-07-29 22:56:55 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-08-01 14:49:54 +0000

    Revert "loader/lua: Remove pager shim"
    
    This reverts commit 8b9178cd0d35ff2beafebdd51c8c44ba2b5aeb0f.
    
    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 commit b38a82c77ab90eace53c56151b191efd1f4a8439)
---
 stand/lua/cli.lua | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/stand/lua/cli.lua b/stand/lua/cli.lua
index 596e55a8d1d8..6832da0a31a5 100644
--- a/stand/lua/cli.lua
+++ b/stand/lua/cli.lua
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408011450.471EoRv5049460>