[Ovirt-devel] [PATCH node-image] abort if nscd is found running

Alan Pevec apevec at redhat.com
Wed Mar 11 01:04:42 UTC 2009


livecd-creator produces corrupt image if nscd is running:
image cannot be unmounted cleanly due to open files,
for details see https://bugzilla.redhat.com/show_bug.cgi?id=481796

Signed-off-by: Alan Pevec <apevec at redhat.com>
---
 Makefile.am |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c91c3b9..01bf632 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -113,7 +113,7 @@ keys:
 	fi
 
 SELINUX_ENFORCING=$(shell /usr/sbin/getenforce)
-$(NVR).$(PKG_FMT): repos.ks keys
+$(NVR).$(PKG_FMT): no_nscd repos.ks keys
 	mkdir -p $(NODE_TMP)
 	mkdir -p $(OVIRT_CACHE_DIR)/yum-$(ARCH)
 	( \
@@ -196,5 +196,12 @@ _publish:
 	rsync -aq $(shell rpm --eval '%{_srcrpmdir}')/ $(OVIRT_CACHE_DIR)/ovirt/src
 	createrepo $(OVIRT_CACHE_DIR)/ovirt
 
+no_nscd:
+	if pgrep -xl nscd; then \
+	    echo "Please stop nscd" ;\
+	    exit 1 ;\
+	fi
+
 .PHONY: rpms publish srpms $(NVR).$(PKG_FMT).$(SUM) $(NVR).$(PKG_FMT) \
-  $(PACKAGE).$(PKG_FMT) keys repos.ks src.ks source _publish iso_srpms
+  $(PACKAGE).$(PKG_FMT) keys repos.ks src.ks source _publish iso_srpms \
+  no_nscd
-- 
1.6.0.6




More information about the ovirt-devel mailing list