Revision 9e302a8c
b/lib/hypervisor/hv_chroot.py | ||
---|---|---|
212 | 212 |
raise HypervisorError("Can't stop the processes using the chroot") |
213 | 213 |
return |
214 | 214 |
|
215 |
def CleanupInstance(self, instance_name): |
|
216 |
"""Cleanup after a stopped instance |
|
217 |
|
|
218 |
""" |
|
219 |
if self._IsDirLive(root_dir): |
|
220 |
raise HypervisorError("Processes are still using the chroot") |
|
221 |
|
|
215 | 222 |
for mpath in self._GetMountSubdirs(root_dir): |
216 | 223 |
utils.RunCmd(["umount", mpath]) |
217 | 224 |
|
Also available in: Unified diff