tags 490884 + patch
thanks

If kvm is compiled into the kernel /dev/kvm already exists. There's also
little point in loading already loaded modules. Possible patch attached.
Jan, o.k. to apply?
 -- Guido
diff --git a/debian/kvm.init b/debian/kvm.init
index 85c1efb..a84ca19 100644
--- a/debian/kvm.init
+++ b/debian/kvm.init
@@ -29,6 +29,11 @@ case "$1" in
 		log_failure_msg "Your system does not have the CPU extensions required to use KVM. Not doing anything."
 		exit 0
 	fi
+	if [ -c /dev/kvm ]
+	then
+		log_failure_msg "/dev/kvm already exists. Not doing anything."
+		exit 0
+	fi
 	if modprobe "$module" 
 	then
 		log_success_msg "Loading kvm module $module"

Reply via email to