guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modprobe on guix


From: Alex Kost
Subject: Re: modprobe on guix
Date: Wed, 25 Mar 2015 21:22:38 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Mark H Weaver (2015-03-25 15:57 +0300) wrote:

> 白い熊@相撲道 <address@hidden> 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.

-- 
Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]