From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: modprobe on guix Date: Wed, 25 Mar 2015 08:57:41 -0400 Message-ID: <87lhilp73u.fsf@netris.org> References: <28d5ac82436d5e625eb926b6544fc1fe@hcoop.net> 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]:57677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaksH-0006IP-H8 for guix-devel@gnu.org; Wed, 25 Mar 2015 08:57:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaksE-0003RH-7n for guix-devel@gnu.org; Wed, 25 Mar 2015 08:57:33 -0400 Received: from world.peace.net ([50.252.239.5]:32864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaksE-0003P1-4d for guix-devel@gnu.org; Wed, 25 Mar 2015 08:57:30 -0400 In-Reply-To: <28d5ac82436d5e625eb926b6544fc1fe@hcoop.net> (=?utf-8?B?Ig==?= =?utf-8?B?55m944GE54aK77yg55u45pKy6YGTIidz?= message of "Tue, 24 Mar 2015 23:39:32 +0100") 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: =?utf-8?B?55m944GE54aK77yg55u45pKy6YGT?= Cc: guix-devel@gnu.org =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"? Mark