GNU bug report logs - #18068
LINUX_MODULE_DIRECTORY needs trailing slash

Previous Next

Package: guix;

Reported by: Mark H Weaver <mhw <at> netris.org>

Date: Mon, 21 Jul 2014 04:39:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18068 in the body.
You can then email your comments to 18068 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#18068; Package guix. (Mon, 21 Jul 2014 04:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mark H Weaver <mhw <at> netris.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 21 Jul 2014 04:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: bug-guix <at> gnu.org
Subject: LINUX_MODULE_DIRECTORY needs trailing slash
Date: Mon, 21 Jul 2014 00:37:06 -0400
'module-init-tools' (with our patch) assumes that LINUX_MODULE_DIRECTORY
ends with a trailing slash.  However, 'udev-service' sets
LINUX_MODULE_DIRECTORY to "/run/booted-system/kernel/lib/modules".

One option would be to add a trailing slash:

--8<---------------cut here---------------start------------->8---
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -488,7 +488,7 @@ passed to @command{guix-daemon}."
 
                         ;; Allow udev to find the modules.
                         (setenv "LINUX_MODULE_DIRECTORY"
-                                "/run/booted-system/kernel/lib/modules")
+                                "/run/booted-system/kernel/lib/modules/")
 
                         (let ((pid (primitive-fork)))
                           (case pid
--8<---------------cut here---------------end--------------->8---

Another option would be to change module-init-tools-moduledir.patch to
cope with the lack of a trailing slash.

Thoughts?

    Thanks,
      Mark




Information forwarded to bug-guix <at> gnu.org:
bug#18068; Package guix. (Mon, 21 Jul 2014 16:13:01 GMT) Full text and rfc822 format available.

Message #8 received at 18068 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18068 <at> debbugs.gnu.org
Subject: Re: bug#18068: LINUX_MODULE_DIRECTORY needs trailing slash
Date: Mon, 21 Jul 2014 18:12:42 +0200
I think it would be best to fix the module-init-tools patch.
Could you look into it?

(Note that (1) udev uses kmod, not module-init-tools, and (2) it’s
possible to use ‘kmod load’ instead of ‘insmod’.)

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#18068; Package guix. (Wed, 23 Jul 2014 02:23:02 GMT) Full text and rfc822 format available.

Message #11 received at 18068 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 18068 <at> debbugs.gnu.org
Subject: Re: bug#18068: LINUX_MODULE_DIRECTORY needs trailing slash
Date: Tue, 22 Jul 2014 22:22:11 -0400
ludo <at> gnu.org (Ludovic Courtès) writes:
> I think it would be best to fix the module-init-tools patch.
> Could you look into it?

Okay.

> (Note that (1) udev uses kmod, not module-init-tools, and (2) it’s
> possible to use ‘kmod load’ instead of ‘insmod’.)

Hmm, yes, I would like to transition to kmod from module-init-tools, but
'kmod load' doesn't work for me, at least not within the standalone guix
system.  'kmod help' doesn't list 'load' as one of the commands either.

The only way I was able to get 'kmod' to work was to create a symlink
named 'modprobe' that points to it, and then running that.

I think we should consider creating those symlinks in our 'kmod'
package.  What do you think?

    Thanks!
      Mark




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Wed, 23 Jul 2014 17:11:01 GMT) Full text and rfc822 format available.

Notification sent to Mark H Weaver <mhw <at> netris.org>:
bug acknowledged by developer. (Wed, 23 Jul 2014 17:11:03 GMT) Full text and rfc822 format available.

Message #16 received at 18068-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18068-done <at> debbugs.gnu.org
Subject: Re: bug#18068: LINUX_MODULE_DIRECTORY needs trailing slash
Date: Wed, 23 Jul 2014 19:10:24 +0200
Commits 906f704 and 4a8b4c2 address both issues.  Thanks!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#18068; Package guix. (Wed, 23 Jul 2014 19:54:02 GMT) Full text and rfc822 format available.

Message #19 received at 18068 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 18068 <at> debbugs.gnu.org
Subject: Re: bug#18068: LINUX_MODULE_DIRECTORY needs trailing slash
Date: Wed, 23 Jul 2014 15:53:21 -0400
Hi Ludovic,

ludo <at> gnu.org (Ludovic Courtès) writes:
> Commits 906f704 and 4a8b4c2 address both issues.  Thanks!

Alas, this seems to have broken the linux-libre builds on all platforms.

   Thanks!
     Mark




Information forwarded to bug-guix <at> gnu.org:
bug#18068; Package guix. (Wed, 23 Jul 2014 20:29:01 GMT) Full text and rfc822 format available.

Message #22 received at 18068 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18068 <at> debbugs.gnu.org
Subject: Re: bug#18068: LINUX_MODULE_DIRECTORY needs trailing slash
Date: Wed, 23 Jul 2014 22:28:28 +0200
Mark H Weaver <mhw <at> netris.org> skribis:

> ludo <at> gnu.org (Ludovic Courtès) writes:
>> Commits 906f704 and 4a8b4c2 address both issues.  Thanks!
>
> Alas, this seems to have broken the linux-libre builds on all platforms.

I had forgotten one, it is fixed with 94b1342.

Thanks for the heads-up!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 21 Aug 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.