qemu: init chroot (MR 2252)

We need to make sure the chroot is initialised before use.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-14 03:55:55 +02:00 committed by Oliver Smith
parent c97ea203a4
commit 30f175073e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -328,7 +328,9 @@ def install_depends(args: PmbArgs, arch: Arch):
if args.efi:
depends.append("ovmf")
pmb.chroot.apk.install(depends, Chroot.native())
chroot = Chroot.native()
pmb.chroot.init(chroot)
pmb.chroot.apk.install(depends, chroot)
def run(args: PmbArgs):