Skip to content

Commit 2c63312

Browse files
committed
fix: raise ureq body limit for large OCI blobs (initrd is 62 MiB)
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent 4d90c24 commit 2c63312

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

host/src/pyhl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ fn extract_via_oci_api(image: &str, src_path_in_image: &str, dst: &Path) -> Resu
518518
.call()
519519
.with_context(|| format!("fetch blob {digest}"))?
520520
.into_body()
521+
.with_config()
522+
.limit(512 * 1024 * 1024)
521523
.read_to_vec()?;
522524

523525
let target_name = src_path_in_image.trim_start_matches('/');

0 commit comments

Comments
 (0)