[PATCH 1/1] net/wget: set filesize

9 Oct
2024
9 Oct
'24
12:53 a.m.
Environment variable filesize is needed for man use cased, e.g.
* write file to device * calculate hash
Let wget set the variable.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com --- net/wget.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/net/wget.c b/net/wget.c index f978adc9f0a..635f82efbb3 100644 --- a/net/wget.c +++ b/net/wget.c @@ -400,6 +400,7 @@ static void wget_handler(uchar *pkt, u16 dport, efi_set_bootdev("Net", "", image_url, map_sysmem(image_load_addr, 0), net_boot_file_size); + env_set_hex("filesize", net_boot_file_size); break; } }
--
2.45.2
216
Age (days ago)
216
Last active (days ago)
0 comments
1 participants
participants (1)
-
Heinrich Schuchardt