lorax/0002-run-lsof-on-the-mountpoints-that-fail-to-unmount.patch
Dennis Gilmore 1a42984490 revert Use size=10 by default (walters@verbum.org)
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-08-19 17:27:08 -05:00

27 lines
930 B
Diff

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