[node-patches] Change in ovirt-node[master]: edit-node: remove dd-isoXXX dir during cleanup
jboggs at redhat.com
jboggs at redhat.com
Thu Jun 6 02:58:05 UTC 2013
Joey Boggs has uploaded a new change for review.
Change subject: edit-node: remove dd-isoXXX dir during cleanup
......................................................................
edit-node: remove dd-isoXXX dir during cleanup
rhbz#960886
Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: If22c7a318109f47d580cffc3c10672a61eaab16e
---
M tools/edit-node
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/00/15400/1
diff --git a/tools/edit-node b/tools/edit-node
index 3297fc4..c3676da 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -72,6 +72,7 @@
self.name = name
self.docleanup = docleanup
self.tmpdir = "/var/tmp"
+ self.dd_dir = None
"""The directory in which all temporary files will be created."""
self.compress_type = None
@@ -1223,6 +1224,9 @@
# cleanup local repo if exists
if os.system("umount %s/tmp/yumrepo" % self._instroot):
os.system("rm -rf %s/tmp/yumrepo" % self._instroot)
+ if os.path.exists(self.dd_dir):
+ os.system("umount %s" % self.dd_dir)
+ shutil.rmtree(self.dd_dir)
return
def _run_yum_install(self, pkgs):
--
To view, visit http://gerrit.ovirt.org/15400
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If22c7a318109f47d580cffc3c10672a61eaab16e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>
More information about the node-patches
mailing list