git: e6d579be4255 - main - core.lua: follow symlinks when looking for bootable kernels

From: Craig Leres <leres_at_FreeBSD.org>
Date: Mon, 09 Mar 2026 21:47:56 UTC
The branch main has been updated by leres:

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

commit e6d579be42550f366cc85188b15c6eb0cad27367
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2026-03-09 21:47:10 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2026-03-09 21:47:47 +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
---
 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 b1b321d10868..92cbd20b25a0 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -255,7 +255,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