def METHOD_NAME(
    yum_dnf: YumDnf, out_dir: Path, install_dir: Path
) -> None:
    with create_ro(out_dir / "versionlock.conf", "w") as outf:
        outf.write(
            textwrap.dedent(
                f"""\
            [main]
            enabled = 1
            locklist = {install_dir.decode()}/versionlock.list
        """
            )
        )
    # Write an empty lock-list. This will be bind-mounted in at runtime.
    with create_ro(out_dir / "versionlock.list", "w"):
        pass