'Takes the newly created partition table on the loopback device and
makes all its devices available under /dev/mapper. As we previously
have partitioned it using a single partition, only one partition
will be returned.
:param loop_path: Path to the loopback device.'

def _create_entries_partition(self, loop_path):

    logging.debug('Creating    entries    under    /dev/mapper    for    %s    loop    dev', loop_path)
    try:
        cmd = ('kpartx    -a    %s' % loop_path)
        utils.run(cmd)
        l_cmd = ('kpartx    -l    %s    |    cut    -f1    -d    "    "' % loop_path)
        device = utils.system_output(l_cmd)
    except error.CmdError as e:
        e_msg = ('Error    creating    entries    for    %s:    %s' % (loop_path, e))
        raise error.AutotestError(e_msg)
    return os.path.join('/dev/mapper', device)
