return result
- def genkey(self) -> CompletedProcess:
- return self.mkosi("genkey", ["--force"])
-
@pytest.fixture(scope="session", autouse=True)
def suspend_capture_stdin(pytestconfig: Any) -> Iterator[None]:
):
pytest.skip("Cannot build RHEL-UBI images with format 'esp' or 'uki'")
- image.genkey()
image.build(options=["--format", str(format)])
if format in (OutputFormat.disk, OutputFormat.directory) and os.getuid() == 0:
firmware = Firmware.linux if bootloader == Bootloader.none else Firmware.auto
with Image(config) as image:
- image.genkey()
image.build(["--format=disk", "--bootloader", str(bootloader)])
image.vm(["--firmware", str(firmware)])