pmb.parse.bootimg: Initialise chroot before installing packages in bootimg() (MR 2526)

Closes https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/issues/2535
This commit is contained in:
Newbyte 2025-01-08 16:37:38 +01:00 committed by Oliver Smith
parent 9a31fe43b3
commit a01578d897
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -85,6 +85,7 @@ def bootimg(path: Path) -> Bootimg:
" we can set up a chroot to extract and analyze your"
" boot.img file"
)
pmb.chroot.init(Chroot.native())
pmb.chroot.apk.install(["file", "unpackbootimg"], Chroot.native())
temp_path = Path("/tmp/bootimg_parser")