def METHOD_NAME(monkeypatch, src_ver, dst_ver, arch):
    # the default set of required rpms should not contain biosdevname
    for pkg in ['biosdevname', 'policycoreutils', 'rng-tools']:
        assert pkg not in modscan._REQUIRED_PACKAGES
    required_packages = modscan._REQUIRED_PACKAGES[:]
    if dst_ver[0] == '9':
        required_packages += ['policycoreutils', 'rng-tools']
    if arch == architecture.ARCH_X86_64:
        required_packages += ['biosdevname']
    monkeypatch.setattr(api, 'current_actor', CurrentActorMocked(src_ver=src_ver, dst_ver=dst_ver, arch=arch))
    old_initram, new_initram = modscan._create_initram_packages()
    assert (set(required_packages)
            == set(old_initram.packages)
            == set(new_initram.install_rpms))