def create_iso(archive, compression, cmd, verbosity, interactive, filenames):
    """Create an ISO archive."""
    cmdlist = [cmd, '-r', '-J']
    if verbosity > 1:
        cmdlist.append('-v')
        if verbosity > 2:
            cmdlist.append('-v')
    cmdlist.extend(['-o', archive])
    cmdlist.extend(filenames)
    return cmdlist
