ishcherb / rpms / lorax

Forked from rpms/lorax 6 years ago
Clone

Blame 0002-run-lsof-on-the-mountpoints-that-fail-to-unmount.patch

32f7f58
From 4428f16c9501c32d8ad159492bf728791d8d364a Mon Sep 17 00:00:00 2001
32f7f58
From: Dennis Gilmore <dennis@ausil.us>
32f7f58
Date: Fri, 19 Aug 2016 09:13:57 -0500
32f7f58
Subject: [PATCH 2/2] run lsof on the mountpoints that fail to unmount
32f7f58
32f7f58
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
32f7f58
---
32f7f58
 src/pylorax/imgutils.py | 2 ++
32f7f58
 1 file changed, 2 insertions(+)
32f7f58
32f7f58
diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py
32f7f58
index 68ec70a..77f4eba 100644
32f7f58
--- a/src/pylorax/imgutils.py
32f7f58
+++ b/src/pylorax/imgutils.py
32f7f58
@@ -220,6 +220,8 @@ def umount(mnt,  lazy=False, maxretry=3, retrysleep=1.0, delete=True):
32f7f58
                 logger.debug("fuser -vm:\n%s\n", fuser)
32f7f58
                 ls = execWithCapture("ls", ["-lah", mnt])
32f7f58
                 logger.debug("ls -lah:\n%s\n", ls)
32f7f58
+                lsof = execWithCapture("lsof", [mnt])
32f7f58
+                logger.debug("lsof\n%s\n", lsof)
32f7f58
             sleep(retrysleep)
32f7f58
         else:
32f7f58
             break
32f7f58
-- 
32f7f58
2.7.4
32f7f58