On 7/12/07, Avi Kivity <[EMAIL PROTECTED]> wrote:
repository: /home/avi/kvm
branch: master
commit ebad9f20e60405fbf01beea7521c8a764391dece
Author: Avi Kivity <[EMAIL PROTECTED]>
Date:   Thu Jul 12 13:20:47 2007 +0300

    kvm: external module: rename original kernel's modules when installing

    this avoids an ambiguity when using the kvm external module in conjuction
    with 2.6.20 or later, which may also have kvm built.

This patch raises a problem if
/lib/modules/<version>/kernel/drivers/kvm/ does not exist.

The enclosed patch fixes the bug.

Signed-off-by: Nguyen Anh Quynh <[EMAIL PROTECTED]>
diff --git a/kernel/Makefile b/kernel/Makefile
index 7eae95b..705d3fd 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -41,7 +41,7 @@ sync:
 install:
 	mkdir -p $(DESTDIR)/$(INSTALLDIR)
 	cp *.ko $(DESTDIR)/$(INSTALLDIR)
-	for i in $(ORIGMODDIR)/drivers/kvm/*.ko; do mv $$i $$i.orig; done
+	for i in $(ORIGMODDIR)/drivers/kvm/*.ko; do mv $$i $$i.orig; done || true
 	/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/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to