When detaching unset single partition dev_path

This commit is contained in:
Anders Ingemann 2014-04-07 21:52:26 +02:00
parent b67b8b7260
commit cf4a414c59

View file

@ -41,6 +41,7 @@ class Volume(FSMProxy):
def set_dev_path(e): def set_dev_path(e):
self.partition_map.root.device_path = self.device_path self.partition_map.root.device_path = self.device_path
callbacks['onafterattach'] = set_dev_path callbacks['onafterattach'] = set_dev_path
callbacks['onafterdetach'] = set_dev_path # Will become None
callbacks['onlink_dm_node'] = set_dev_path callbacks['onlink_dm_node'] = set_dev_path
callbacks['onunlink_dm_node'] = set_dev_path callbacks['onunlink_dm_node'] = set_dev_path