git: 1841091eaa0b - stable/14 - core.lua: follow symlinks when looking for bootable kernels

From: Craig Leres <leres_at_FreeBSD.org>
Date: Tue, 16 Jun 2026 23:48:35 UTC
The branch stable/14 has been updated by leres:

URL: https://cgit.FreeBSD.org/src/commit/?id=1841091eaa0b2e1f71600c892d3ce041a57bae3c

commit 1841091eaa0b2e1f71600c892d3ce041a57bae3c
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2026-03-09 21:47:10 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2026-06-16 23:48:16 +0000

    core.lua: follow symlinks when looking for bootable kernels
    
    PR: 293654
    Reviewed by:    kevans
    Approved by:    kevans
    Differential Revision:  https://reviews.freebsd.org/D55713
    
    (cherry picked from commit e6d579be42550f366cc85188b15c6eb0cad27367)
---
 stand/lua/core.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index 16825d560094..a796ce8a4cfd 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -253,7 +253,7 @@ function core.kernelList()
 		end
 
 		if ftype then
-			if ftype ~= lfs.DT_DIR then
+			if ftype ~= lfs.DT_DIR and ftype ~= (lfs.DT_LNK or 10) then
 				goto continue
 			end
 		elseif lfs.attributes(fname, "mode") ~= "directory" then