def unmap_dev(self):
        if not self.mapped:
            return
        LOG.debug("Unmap dev %s", self.device)
        if self.partition and not self.automapped:
            utils.execute('kpartx', '-d', self.device, run_as_root=True)
        self.mapped = False
        self.automapped = False
Inspect the arguments to pkg.removed and discover what packages need to
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/disk/mount/api.py/Mount.unmap_dev--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/pkg.py/_find_remove_targets