unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ
@ 2018-05-25 21:14 Vagrant Cascadian
  2018-06-14 21:38 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Vagrant Cascadian @ 2018-05-25 21:14 UTC (permalink / raw)
  To: 31598

[-- Attachment #1: Type: text/plain, Size: 1772 bytes --]

The check for initrd-modules does not appear to handle when loaded
modules use underscores (e.g. "sdhci_of_arasan") but the on-disk modules
use dashes (e.g. "sdhci-of-arasan"). Some modules even use a mix of
underscores and dashes, just to keep it interesting.

The workaround is to use --skip-checks, but this may skip other
important checks.

Putting the "sdhci_of_arasan" in my system config, it fails because it
cannot find the kernel module on-disk by that name.

Ideally, it would find some way of mapping the loaded module names to
the on-disk module filenames, and detect appropriately, ideally
allowing either the on-disk filename or the loaded module name in the
config.


In my config:

  (initrd-modules (append (list ... "sdhci-of-arasan" ... ) %base-initrd-modules))


When I run:

  $ sudo -E guix system reconfigure /etc/config.scm

  <unknown location>: error: you may need these modules in the initrd for /dev/mmcblk1p1: sdhci_of_arasan
  hint: Try adding them to the `initrd-modules' field of your `operating-system' declaration, along these
  lines:

        (operating-system
          ;; ...
          (initrd-modules (append (list "sdhci_of_arasan")
                                  %base-initrd-modules)))

Since the on-disk module name uses "-" instead of underscores:

  $ find /gnu/store/*linux-libre* -name '*'arasan.ko
  /gnu/store/nilzipm6fpicvlzfv1w8yj1j8mm1xlan-linux-libre-4.16.11/lib/modules/4.16.11-gnu/kernel/drivers/mmc/host/sdhci-of-arasan.ko


But the loaded module uses "_" in the name:

  $ lsmod | grep arasan
  sdhci_of_arasan        20480  1
  cqhci                  24576  1 sdhci_of_arasan
  sdhci_pltfm            16384  1 sdhci_of_arasan
  sdhci                  61440  2 sdhci_pltfm,sdhci_of_arasan


live well,
  vagrant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ
  2018-05-25 21:14 bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ Vagrant Cascadian
@ 2018-06-14 21:38 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-06-14 21:38 UTC (permalink / raw)
  To: Vagrant Cascadian, pelzflorian; +Cc: 31598-done

Hello Vagrant & Florian,

Vagrant Cascadian <vagrant@debian.org> skribis:

> In my config:
>
>   (initrd-modules (append (list ... "sdhci-of-arasan" ... ) %base-initrd-modules))
>
>
> When I run:
>
>   $ sudo -E guix system reconfigure /etc/config.scm
>
>   <unknown location>: error: you may need these modules in the initrd for /dev/mmcblk1p1: sdhci_of_arasan
>   hint: Try adding them to the `initrd-modules' field of your `operating-system' declaration, along these
>   lines:
>
>         (operating-system
>           ;; ...
>           (initrd-modules (append (list "sdhci_of_arasan")
>                                   %base-initrd-modules)))
>
> Since the on-disk module name uses "-" instead of underscores:
>
>   $ find /gnu/store/*linux-libre* -name '*'arasan.ko
>   /gnu/store/nilzipm6fpicvlzfv1w8yj1j8mm1xlan-linux-libre-4.16.11/lib/modules/4.16.11-gnu/kernel/drivers/mmc/host/sdhci-of-arasan.ko
>
>
> But the loaded module uses "_" in the name:
>
>   $ lsmod | grep arasan
>   sdhci_of_arasan        20480  1
>   cqhci                  24576  1 sdhci_of_arasan
>   sdhci_pltfm            16384  1 sdhci_of_arasan
>   sdhci                  61440  2 sdhci_pltfm,sdhci_of_arasan

I believe this is fixed by 411959bef30b488928ab2418a064c8a9b0347c41.
Let me know if it’s not!

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-14 21:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-25 21:14 bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ Vagrant Cascadian
2018-06-14 21:38 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).