lorax/0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.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

28 lines
974 B
Diff

From 893c2b59b01bac9ab8ef6764ed4b33f353a4d745 Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <dennis@ausil.us>
Date: Thu, 18 Aug 2016 16:31:34 -0500
Subject: [PATCH 1/3] in additoon to running fuser on /dev/shm also run ls to
see whats in it
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 ca27e2c..68ec70a 100644
--- a/src/pylorax/imgutils.py
+++ b/src/pylorax/imgutils.py
@@ -218,6 +218,8 @@ def umount(mnt, lazy=False, maxretry=3, retrysleep=1.0, delete=True):
if logger.getEffectiveLevel() <= logging.DEBUG:
fuser = execWithCapture("fuser", ["-vm", mnt])
logger.debug("fuser -vm:\n%s\n", fuser)
+ ls = execWithCapture("ls", ["-lah", mnt])
+ logger.debug("ls -lah:\n%s\n", ls)
sleep(retrysleep)
else:
break
--
2.7.4