pmb.qemu package¶
Submodules¶
pmb.qemu.run module¶
- pmb.qemu.run.command_qemu(args: PmbArgs, config: Config, arch: Arch, img_path: Path, img_path_2nd: Path | None = None) tuple[list[str | Path], dict[str, Path | str]] ¶
Generate the full qemu command with arguments to run postmarketOS
- pmb.qemu.run.create_gdk_loader_cache(args: PmbArgs) Path ¶
Create a gdk loader cache that can be used for running GTK UIs outside of the chroot.
- pmb.qemu.run.create_second_storage(args: PmbArgs, device: str) Path ¶
Generate a second storage image if it does not exist.
- Returns:
path to the image or None
- pmb.qemu.run.install_depends(args: PmbArgs, arch: Arch) None ¶
Install any necessary qemu dependencies in native chroot
- pmb.qemu.run.resize_image(img_size_new, img_path)¶
Truncates an image to a specific size. The value must be larger than the current image size, and it must be specified in MiB or GiB units (powers of 1024).
- Parameters:
img_size_new – new image size in M or G
img_path – the path to the image
- pmb.qemu.run.sigterm_handler(number, frame)¶
- pmb.qemu.run.system_image(device: str) Path ¶
Returns path to rootfs for specified device. In case that it doesn’t exist, raise and exception explaining how to generate it.