From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Lenz Subject: Minor install fix Date: Fri, 13 Jul 2007 20:20:40 -0500 Message-ID: <469824E8.1010809@math.uiuc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org I noticed kvm 29 added a command into make install to move the distro installed kvm.ko modules out of the way. But for me, I had already removed the drivers/kvm directory, so make install was getting a file does not exist error. So I added a test for the directory. John --- kvm-29/kernel/Makefile 2007-07-12 05:20:47.000000000 -0500 +++ kvm-29.mod/kernel/Makefile 2007-07-13 20:13:45.000000000 -0500 @@ -41,7 +41,9 @@ install: mkdir -p $(DESTDIR)/$(INSTALLDIR) cp *.ko $(DESTDIR)/$(INSTALLDIR) - for i in $(ORIGMODDIR)/drivers/kvm/*.ko; do mv $$i $$i.orig; done + if [ -d $(ORIGMODDIR)/drivers/kvm ]; then \ + for i in $(ORIGMODDIR)/drivers/kvm/*.ko; do mv $$i $$i.orig; done \ + fi /sbin/depmod -a tmpspec = .tmp.kvm-kmod.spec ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/