Source: u-boot Version: 2021.01+dfsg-5 Severity: normal Tags: patch X-Debbugs-Cc: manuel.tr...@mt.com
Hi vagrant, during testing on the imx6 colibri board i recognized that the prompt value of extlinux.conf is ignored. The attached patch fixes the problem. Can it be added to debian or shall I try to submit it upstream first? cu, Manuel
From: Manuel Traut <manuel.tr...@mt.com> Date: Thu, 17 Nov 2022 16:38:47 +0100 Subject: distro/pxe boot: read prompt value from config Currently the configuration of prompt in extlinux.conf is ignored. Read it from the file, if not given do not fail. Signed-off-by: Manuel Traut <manuel.tr...@mt.com> --- boot/pxe_utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index 8133006..a6c56e0 100644 --- a/boot/pxe_utils.c +++ b/boot/pxe_utils.c @@ -1359,7 +1359,10 @@ static int parse_pxefile_top(struct pxe_context *ctx, char *p, unsigned long bas break; case T_PROMPT: - eol_or_eof(&p); + err = parse_integer(&p, &cfg->prompt); + // Do not fail if prompt configuration is missing + if (err < 0) + eol_or_eof(&p); break; case T_EOL: