'Removes the entries under /dev/mapper for the partition associated
to the loopback device.'

def _remove_entries_partition(self):

    logging.debug('Removing    the    entry    on    /dev/mapper    for    %s    loop    dev', self.loop)
    try:
        cmd = ('kpartx    -d    %s' % self.loop)
        utils.run(cmd)
    except error.CmdError as e:
        e_msg = ('Error    removing    entries    for    loop    %s:    %s' % (self.loop, e))
        raise error.AutotestError(e_msg)
