From 9807b8261d4a7bd17857cefc25b053226e7a26c2 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 18 Aug 2016 16:34:49 -0500 Subject: [PATCH] add a patch to do a ls of /dev/shm for testing of lives Signed-off-by: Dennis Gilmore --- ...unning-fuser-on-dev-shm-also-run-ls-.patch | 27 +++++++++++++++++++ lorax.spec | 7 ++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch diff --git a/0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch b/0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch new file mode 100644 index 0000000..4973ef3 --- /dev/null +++ b/0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch @@ -0,0 +1,27 @@ +From 893c2b59b01bac9ab8ef6764ed4b33f353a4d745 Mon Sep 17 00:00:00 2001 +From: Dennis Gilmore +Date: Thu, 18 Aug 2016 16:31:34 -0500 +Subject: [PATCH] in additoon to running fuser on /dev/shm also run ls to see + whats in it + +Signed-off-by: Dennis Gilmore +--- + 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 + diff --git a/lorax.spec b/lorax.spec index 95910bb..8d3d48e 100644 --- a/lorax.spec +++ b/lorax.spec @@ -4,7 +4,7 @@ Name: lorax Version: 25.13 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tool for creating the anaconda install images Group: Applications/System @@ -15,6 +15,7 @@ URL: https://github.com/rhinstaller/lorax # git checkout -b archive-branch lorax-%%{version}-%%{release} # tito build --tgz Source0: %{name}-%{version}.tar.gz +Patch0: 0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch BuildRequires: python3-devel @@ -116,6 +117,7 @@ Lorax templates for creating the boot.iso and live isos are placed in %prep %setup -q -n %{name}-%{version} +%patch0 -p1 %build @@ -148,6 +150,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install %changelog +* Thu Aug 18 2016 Dennis Gilmore - 25.13-2 +- add a patch to do a ls of /dev/shm for testing of lives + * Fri Aug 12 2016 Brian C. Lane 25.13-1 - as of Fedora 25 s390x now has docker (pbrobinson@fedoraproject.org) - ppc64le doesn't have pcmciatools (pbrobinson@fedoraproject.org)