Skip to contentSkip to conversation

extlinux: recognize LINUX as an alias for KERNEL

PATCH Applied Stephano Cetola 2 participants 2 messages Aug 26 – Aug 28

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extlinux: recognize LINUX as an alias for KERNEL

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")
---
 common/extlinux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/extlinux.c +1 -1
index caa62923da..92c49ebbce 100644
@@ -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

Applied
#1 lore raw
Quoted 8 lines · Stephano Cetola

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,

Signature · 1 line
Sascha Hauer <[email protected]>