* [PATCH] extlinux: recognize LINUX as an alias for KERNEL
@ 2026-08-26 0:38 Stephano Cetola
2026-08-28 10:10 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Stephano Cetola @ 2026-08-26 0:38 UTC (permalink / raw)
To: Sascha Hauer, open list:BAREBOX
Syslinux configs commonly use LINUX instead of KERNEL to name the
kernel image. parse_extlinux_conf() only checked for KERNEL, so a
LABEL block using LINUX left entry->kernel unset. parse_extlinux_conf()
requires a kernel path to accept an entry, so the whole extlinux.conf
was rejected instead of just the one line being ignored.
Fixes: b912fa9fc3ca ("Add support for extlinux.conf")
Signed-off-by: Stephano Cetola <stephano@cetola.net>
---
common/extlinux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/extlinux.c b/common/extlinux.c
index caa62923da..92c49ebbce 100644
--- a/common/extlinux.c
+++ b/common/extlinux.c
@@ -132,7 +132,7 @@ static struct extlinux_entry *parse_extlinux_conf(const char *abspath,
}
if (entry) {
- if (!strcasecmp(key, "KERNEL"))
+ if (!strcasecmp(key, "KERNEL") || !strcasecmp(key, "LINUX"))
entry->kernel = xstrdup(val);
else if (!strcasecmp(key, "INITRD"))
entry->initrd = xstrdup(val);
---
base-commit: 9bc1a26592a59919d2ee8c60c273d87d3d9f2e81
change-id: 20260822-send-extlinux-linux-keyword-ce52ee90d321
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] extlinux: recognize LINUX as an alias for KERNEL
2026-08-26 0:38 [PATCH] extlinux: recognize LINUX as an alias for KERNEL Stephano Cetola
@ 2026-08-28 10:10 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-08-28 10:10 UTC (permalink / raw)
To: open list:BAREBOX, Stephano Cetola
On Tue, 25 Aug 2026 17:38:33 -0700, Stephano Cetola wrote:
> Syslinux configs commonly use LINUX instead of KERNEL to name the
> kernel image. parse_extlinux_conf() only checked for KERNEL, so a
> LABEL block using LINUX left entry->kernel unset. parse_extlinux_conf()
> requires a kernel path to accept an entry, so the whole extlinux.conf
> was rejected instead of just the one line being ignored.
>
>
> [...]
Applied, thanks!
[1/1] extlinux: recognize LINUX as an alias for KERNEL
https://git.pengutronix.de/cgit/barebox/commit/?id=172f8c1d0fbf (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-28 10:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 0:38 [PATCH] extlinux: recognize LINUX as an alias for KERNEL Stephano Cetola
2026-08-28 10:10 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox