From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: modprobe on guix Date: Wed, 25 Mar 2015 21:22:38 +0300 Message-ID: <87lhilrl75.fsf@gmail.com> References: <28d5ac82436d5e625eb926b6544fc1fe@hcoop.net> <87lhilp73u.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yapwz-0000Rd-A5 for guix-devel@gnu.org; Wed, 25 Mar 2015 14:22:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yapwv-00043I-D7 for guix-devel@gnu.org; Wed, 25 Mar 2015 14:22:45 -0400 Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:36550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yapwv-00042z-3M for guix-devel@gnu.org; Wed, 25 Mar 2015 14:22:41 -0400 Received: by lbbug6 with SMTP id ug6so24030231lbb.3 for ; Wed, 25 Mar 2015 11:22:40 -0700 (PDT) In-Reply-To: <87lhilp73u.fsf@netris.org> (Mark H. Weaver's message of "Wed, 25 Mar 2015 08:57:41 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver (2015-03-25 15:57 +0300) wrote: > =E7=99=BD=E3=81=84=E7=86=8A=EF=BC=A0=E7=9B=B8=E6=92=B2=E9=81=93 writes: >> How do I load a kernel module in Guix? > > It should just work, assuming that LINUX_MODULE_DIRECTORY is set to > /run/booted-system/kernel/lib/modules and that you are using 'modprobe' > from Guix. We set LINUX_MODULE_DIRECTORY in /etc/profile on GuixSD. > >> I can insmod the concrete .ko file from the /gnu/store/... kernel >> directory, however this is impractical for scripts etc, since the >> directory will change with system reconfigure. > > For insmod, use /run/booted-system/kernel/lib/modules. > >> However 'sudo modprobe ...' doesn't load the kernel module... > > It works for me. Can you try the following command: > > sudo bash -c "echo $LINUX_MODULE_DIRECTORY" > > and verify that it prints "/run/booted-system/kernel/lib/modules"? I'm on GuixSD (and LINUX_MODULE_DIRECTORY is set properly) but: $ sudo modprobe ... doesn't load a module for me, however when I try it under root: # modprobe ... it works. No idea why that happens. --=20 Alex