def write(parameters: dict, cmdline_file: str):
    """
    Create a cmdline file with the provided parameters
    Overwrite it if it exists

    :param parameters: A dictionary of key/value pairs
    :param cmdline_file: The **boot partition's** cmdline file
    """
    data = ''
    for key in parameters:
        if len(data) != 0:
            data += ' '
        data += '{}={}'.format(key, parameters[key])
    with open(cmdline_file, 'w') as fpt:
        fpt.write(data)
