qemu: don't try and install stuff in rootfs (MR 2252)

Don't try and install random packages in the rootfs chroot when starting
QEMU. The chroot is not initialised and this just adds latency.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-19 00:16:36 +02:00 committed by Oliver Smith
parent 2472e4c612
commit fe079c8676
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -108,7 +108,7 @@ def command_qemu(args: PmbArgs, config: Config, arch: Arch, img_path, img_path_2
chroot = Chroot(ChrootType.ROOTFS, device)
chroot_native = Chroot.native()
flavor = pmb.chroot.other.kernel_flavor_installed(chroot)
flavor = pmb.chroot.other.kernel_flavor_installed(chroot, autoinstall=False)
flavor_suffix = f"-{flavor}"
# Backwards compatibility with old mkinitfs (pma#660)
pmaports_cfg = pmb.config.pmaports.read_config()