'Creates a single partition encompassing the whole \'disk\' using cfdisk.
:param loop_path: Path to the loopback device.'

def _create_single_partition(self, loop_path):

    logging.debug('Creating    single    partition    on    %s', loop_path)
    try:
        single_part_cmd = '0,,c\n'
        sfdisk_file_path = '/tmp/create_partition.sfdisk'
        sfdisk_cmd_file = open(sfdisk_file_path, 'w')
        sfdisk_cmd_file.write(single_part_cmd)
        sfdisk_cmd_file.close()
        utils.run(('sfdisk    %s    <    %s' % (loop_path, sfdisk_file_path)))
    except error.CmdError as e:
        e_msg = ('Error    partitioning    device    %s:    %s' % (loop_path, e))
        raise error.AutotestError(e_msg)
