diff options
author | Thomas Mittelstaedt | 2023-05-04 13:42:55 +0000 |
---|---|---|
committer | Bin Meng | 2023-09-22 06:03:46 +0800 |
commit | 1a075d4e0de797ac2b25adcc27ea537fa01f89cb (patch) | |
tree | 6cd49051dfeeca4ff0e53344c2a71c92007dee67 /boot/pxe_utils.c | |
parent | fde0df92b57ae707c67cbf4be9bcc72b59f10cc3 (diff) |
x86: pxeboot: bugfix: Set variable for size of initrd
The problem was, that zboot() didn't work because of missing
ramdisc size.
Signed-off-by: Thomas Mittelstaedt <thomas.mittelstaedt@de.bosch.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/pxe_utils.c')
-rw-r--r-- | boot/pxe_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index ac1414a5f26..a92bb896c63 100644 --- a/boot/pxe_utils.c +++ b/boot/pxe_utils.c @@ -554,7 +554,7 @@ static int label_boot(struct pxe_context *ctx, struct pxe_label *label) label->name); goto cleanup; } - + strcpy(initrd_filesize, simple_xtoa(size)); initrd_addr_str = env_get("ramdisk_addr_r"); size = snprintf(initrd_str, sizeof(initrd_str), "%s:%lx", initrd_addr_str, size); |