From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [PATCH 03/12] Add udev rule Date: Mon, 19 Oct 2009 15:25:10 +0200 Message-ID: <4ADC68B6.1020605@siemens.com> References: <20091019105923.3988.42243.stgit@mchn012c.ww002.siemens.net> <20091019105924.3988.4209.stgit@mchn012c.ww002.siemens.net> <4ADC6755.4040608@msgid.tls.msk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , "kvm@vger.kernel.org" To: Michael Tokarev Return-path: Received: from david.siemens.de ([192.35.17.14]:17924 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756105AbZJSNZW (ORCPT ); Mon, 19 Oct 2009 09:25:22 -0400 In-Reply-To: <4ADC6755.4040608@msgid.tls.msk.ru> Sender: kvm-owner@vger.kernel.org List-ID: Michael Tokarev wrote: > Jan Kiszka wrote: >> Ported from OpenSUSE: Provide an udev rule that not only sets the group >> of /dev/kvm but also triggers automatic loading of the kernel modules >> during boot. >> > [] >> diff --git a/Makefile b/Makefile >> index 8314833..8614449 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -54,6 +54,7 @@ install: >> if [ -f "$$i" ]; then mv "$$i" "$$i.orig"; fi; \ >> done >> /sbin/depmod -a $(DEPMOD_VERSION) -b $(DESTDIR) >> + install -m 644 -D scripts/65-kvm.rules $(DESTDIR)/etc/udev/rules.d/65-kvm.rules > > Ugh. I wonder why kernel does not load all the hardware > modules this way still. > > And why people think that whole world is udev. Well, there are n ways to skin this cat. One alternative is to setup a runlevel script - far more unhandy IMHO. Another one is to add the fitting module to the distro-specific list of automatically loaded modules - even more unhandy. > > Can we avoid this mess please? If you have a cleaner suggestion, I'm all ears! Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux