Mark H Weaver (2015-03-25 15:57 +0300) wrote: > 白い熊@相撲道 <guix-devel_gnu....@sumou.com> 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