add patch to run lsof as well as fuser and ls on mount points
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
parent
9807b8261d
commit
32f7f584fd
@ -1,8 +1,8 @@
|
|||||||
From 893c2b59b01bac9ab8ef6764ed4b33f353a4d745 Mon Sep 17 00:00:00 2001
|
From 893c2b59b01bac9ab8ef6764ed4b33f353a4d745 Mon Sep 17 00:00:00 2001
|
||||||
From: Dennis Gilmore <dennis@ausil.us>
|
From: Dennis Gilmore <dennis@ausil.us>
|
||||||
Date: Thu, 18 Aug 2016 16:31:34 -0500
|
Date: Thu, 18 Aug 2016 16:31:34 -0500
|
||||||
Subject: [PATCH] in additoon to running fuser on /dev/shm also run ls to see
|
Subject: [PATCH 1/2] in additoon to running fuser on /dev/shm also run ls to
|
||||||
whats in it
|
see whats in it
|
||||||
|
|
||||||
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
|
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
|
||||||
---
|
---
|
||||||
|
26
0002-run-lsof-on-the-mountpoints-that-fail-to-unmount.patch
Normal file
26
0002-run-lsof-on-the-mountpoints-that-fail-to-unmount.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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/2] 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
|
||||||
|
|
@ -16,6 +16,7 @@ URL: https://github.com/rhinstaller/lorax
|
|||||||
# tito build --tgz
|
# tito build --tgz
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch0: 0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch
|
Patch0: 0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch
|
||||||
|
Patch1: 0002-run-lsof-on-the-mountpoints-that-fail-to-unmount.patch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
@ -150,6 +151,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 19 2016 Dennis Gilmore <dennis@ausil.us> - 25.13-4
|
||||||
|
- add patch to run lsof as well as fuser and ls on mount points
|
||||||
|
|
||||||
* Thu Aug 18 2016 Dennis Gilmore <dennis@ausil.us> - 25.13-2
|
* Thu Aug 18 2016 Dennis Gilmore <dennis@ausil.us> - 25.13-2
|
||||||
- add a patch to do a ls of /dev/shm for testing of lives
|
- add a patch to do a ls of /dev/shm for testing of lives
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user