From unknown Mon Aug 11 18:55:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 25 May 2018 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31598 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 31598@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152728288329059 (code B ref -1); Fri, 25 May 2018 21:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 May 2018 21:14:43 +0000 Received: from localhost ([127.0.0.1]:48792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMK2t-0007Yd-GB for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMK2r-0007YI-AP for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMK2l-0005NX-04 for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fMK2k-0005NT-TB for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMK2j-0001QT-QB for bug-guix@gnu.org; Fri, 25 May 2018 17:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMK2f-0005KV-Rm for bug-guix@gnu.org; Fri, 25 May 2018 17:14:33 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:54691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMK2f-0005J0-Kz for bug-guix@gnu.org; Fri, 25 May 2018 17:14:29 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 79DF91B411 for ; Fri, 25 May 2018 14:14:27 -0700 (PDT) From: Vagrant Cascadian Date: Fri, 25 May 2018 14:14:15 -0700 Message-ID: <87bmd3sajc.fsf@aikidev.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --=-=-= Content-Type: text/plain 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 : 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlsIfKgACgkQt4uC1IFL kbYtyg//SN1o+OXsqeXyH3uOnQBxOKgg/kLV/Vlvdr9GXxJ6MbbkdYl/CRwa0cTU +mMLM1cp06amdVBS1Ca0tXip/vwvKObtrAsLZcaOeWeYKYr86zIBuFr/UOj+lxSu ngRrOIVvnJhcAQ1xNq43r2wmu/XSPPQ8OOwQ5UdwYGGmvyQHDzUBByu6J8ab68Hx JHPkuQBoMCD4e6tjqGgqcogN/dyjcDfhAxVS4hjnUB7fcKqugxO4q9vSWNW73D2p OouVwqalBt0/cVIbiCBAC52nzVrOqAyebx7b8r+w4/WBUgBAS0cfhlR8UzrbgIyI yZ3wPbwxmNXQOzMLslrTaxyk4M/LdUfcZCEQ1eeBgGSn3Gx15h2hbq8NAwwOMpcB cBnHEyEmUFsTnJ9iUSEom/74pcZ+3bH5rd1W3hlQJh6K6GMZFWzFw6jO3zduTQIJ vkfxaD/E8/YYKHjQSg7cY19UW4QGr6Uy8aQTdu9ccQqJdWNY0SaxS0vl2Y6c7WeV Gkd7agA5A7nd3QtVxghCAH6aO7X1/pio6o15UFMGveNCJ/6iGSa8BFUT5H+czdrv J5i1xd15+yr6MDt4siVKInfAvHOBdnloJj7bivBS0SmmjAj+pG8rgWuySM013RoZ ZtGuU72blcoyftOiaofX7XDbPT1TVGDypnGxOCGE2D95ng+xt5U= =b59a -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 07 12:11:35 2018 Received: (at control) by debbugs.gnu.org; 7 Jun 2018 16:11:35 +0000 Received: from localhost ([127.0.0.1]:38364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQxVf-00023n-Bi for submit@debbugs.gnu.org; Thu, 07 Jun 2018 12:11:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQxVc-00023Z-4L for control@debbugs.gnu.org; Thu, 07 Jun 2018 12:11:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQxVT-0007tC-2o for control@debbugs.gnu.org; Thu, 07 Jun 2018 12:11:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQxVT-0007t6-00 for control@debbugs.gnu.org; Thu, 07 Jun 2018 12:11:23 -0400 Received: from [193.50.110.75] (port=41186 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fQxVS-0005fz-HQ for control@debbugs.gnu.org; Thu, 07 Jun 2018 12:11:22 -0400 Date: Thu, 07 Jun 2018 18:11:21 +0200 Message-Id: <87efhibmqe.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #31598 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) merge 31598 31714 From unknown Mon Aug 11 18:55:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vagrant Cascadian Subject: bug#31598: closed (Re: bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ) Message-ID: References: <87bmcdxd4p.fsf@gnu.org> <87bmd3sajc.fsf@aikidev.net> X-Gnu-PR-Message: they-closed 31598 X-Gnu-PR-Package: guix Reply-To: 31598@debbugs.gnu.org Date: Thu, 14 Jun 2018 21:39:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1529012342-26161-1" This is a multi-part message in MIME format... ------------=_1529012342-26161-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31598: Check for initrd-modules fails to detect when loaded module and on-= disk module filename differ which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31598@debbugs.gnu.org. --=20 31598: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31598 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1529012342-26161-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31598-done) by debbugs.gnu.org; 14 Jun 2018 21:38:27 +0000 Received: from localhost ([127.0.0.1]:48622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTZwm-0006n9-Oh for submit@debbugs.gnu.org; Thu, 14 Jun 2018 17:38:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTZwl-0006mx-1R for 31598-done@debbugs.gnu.org; Thu, 14 Jun 2018 17:38:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTZwf-00052M-34 for 31598-done@debbugs.gnu.org; Thu, 14 Jun 2018 17:38:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTZwe-00052F-W0; Thu, 14 Jun 2018 17:38:17 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57592 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fTZwe-0006y3-Iy; Thu, 14 Jun 2018 17:38:16 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Vagrant Cascadian , Subject: Re: bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ References: <87bmd3sajc.fsf@aikidev.net> Date: Thu, 14 Jun 2018 23:38:14 +0200 In-Reply-To: <87bmd3sajc.fsf@aikidev.net> (Vagrant Cascadian's message of "Fri, 25 May 2018 14:14:15 -0700") Message-ID: <87bmcdxd4p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31598-done Cc: 31598-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello Vagrant & Florian, Vagrant Cascadian 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 > > : 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/mod= ules/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=E2=80=99s not! Thanks, Ludo=E2=80=99. ------------=_1529012342-26161-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 May 2018 21:14:43 +0000 Received: from localhost ([127.0.0.1]:48792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMK2t-0007Yd-GB for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMK2r-0007YI-AP for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMK2l-0005NX-04 for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fMK2k-0005NT-TB for submit@debbugs.gnu.org; Fri, 25 May 2018 17:14:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMK2j-0001QT-QB for bug-guix@gnu.org; Fri, 25 May 2018 17:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMK2f-0005KV-Rm for bug-guix@gnu.org; Fri, 25 May 2018 17:14:33 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:54691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMK2f-0005J0-Kz for bug-guix@gnu.org; Fri, 25 May 2018 17:14:29 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 79DF91B411 for ; Fri, 25 May 2018 14:14:27 -0700 (PDT) From: Vagrant Cascadian To: bug-guix@gnu.org Subject: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ Date: Fri, 25 May 2018 14:14:15 -0700 Message-ID: <87bmd3sajc.fsf@aikidev.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --=-=-= Content-Type: text/plain 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 : 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlsIfKgACgkQt4uC1IFL kbYtyg//SN1o+OXsqeXyH3uOnQBxOKgg/kLV/Vlvdr9GXxJ6MbbkdYl/CRwa0cTU +mMLM1cp06amdVBS1Ca0tXip/vwvKObtrAsLZcaOeWeYKYr86zIBuFr/UOj+lxSu ngRrOIVvnJhcAQ1xNq43r2wmu/XSPPQ8OOwQ5UdwYGGmvyQHDzUBByu6J8ab68Hx JHPkuQBoMCD4e6tjqGgqcogN/dyjcDfhAxVS4hjnUB7fcKqugxO4q9vSWNW73D2p OouVwqalBt0/cVIbiCBAC52nzVrOqAyebx7b8r+w4/WBUgBAS0cfhlR8UzrbgIyI yZ3wPbwxmNXQOzMLslrTaxyk4M/LdUfcZCEQ1eeBgGSn3Gx15h2hbq8NAwwOMpcB cBnHEyEmUFsTnJ9iUSEom/74pcZ+3bH5rd1W3hlQJh6K6GMZFWzFw6jO3zduTQIJ vkfxaD/E8/YYKHjQSg7cY19UW4QGr6Uy8aQTdu9ccQqJdWNY0SaxS0vl2Y6c7WeV Gkd7agA5A7nd3QtVxghCAH6aO7X1/pio6o15UFMGveNCJ/6iGSa8BFUT5H+czdrv J5i1xd15+yr6MDt4siVKInfAvHOBdnloJj7bivBS0SmmjAj+pG8rgWuySM013RoZ ZtGuU72blcoyftOiaofX7XDbPT1TVGDypnGxOCGE2D95ng+xt5U= =b59a -----END PGP SIGNATURE----- --=-=-=-- ------------=_1529012342-26161-1-- From unknown Mon Aug 11 18:55:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "pelzflorian (Florian Pelz)" Subject: bug#31714: closed (Re: bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ) Message-ID: References: <87bmcdxd4p.fsf@gnu.org> <20180604195732.tbt5uwhzouzxoyxk@floriannotebook> X-Gnu-PR-Message: they-closed 31714 X-Gnu-PR-Package: guix Reply-To: 31714@debbugs.gnu.org Date: Thu, 14 Jun 2018 21:39:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1529012343-26161-3" This is a multi-part message in MIME format... ------------=_1529012343-26161-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31598: Cannot use usb-storage initrd module. which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31714@debbugs.gnu.org. --=20 31598: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31598 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1529012343-26161-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31598-done) by debbugs.gnu.org; 14 Jun 2018 21:38:27 +0000 Received: from localhost ([127.0.0.1]:48622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTZwm-0006n9-Oh for submit@debbugs.gnu.org; Thu, 14 Jun 2018 17:38:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTZwl-0006mx-1R for 31598-done@debbugs.gnu.org; Thu, 14 Jun 2018 17:38:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTZwf-00052M-34 for 31598-done@debbugs.gnu.org; Thu, 14 Jun 2018 17:38:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTZwe-00052F-W0; Thu, 14 Jun 2018 17:38:17 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57592 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fTZwe-0006y3-Iy; Thu, 14 Jun 2018 17:38:16 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Vagrant Cascadian , Subject: Re: bug#31598: Check for initrd-modules fails to detect when loaded module and on-disk module filename differ References: <87bmd3sajc.fsf@aikidev.net> Date: Thu, 14 Jun 2018 23:38:14 +0200 In-Reply-To: <87bmd3sajc.fsf@aikidev.net> (Vagrant Cascadian's message of "Fri, 25 May 2018 14:14:15 -0700") Message-ID: <87bmcdxd4p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31598-done Cc: 31598-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello Vagrant & Florian, Vagrant Cascadian 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 > > : 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/mod= ules/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=E2=80=99s not! Thanks, Ludo=E2=80=99. ------------=_1529012343-26161-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jun 2018 19:57:51 +0000 Received: from localhost ([127.0.0.1]:33655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPvbz-0007G6-4F for submit@debbugs.gnu.org; Mon, 04 Jun 2018 15:57:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPvbx-0007Fu-HE for submit@debbugs.gnu.org; Mon, 04 Jun 2018 15:57:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPvbr-0003La-5t for submit@debbugs.gnu.org; Mon, 04 Jun 2018 15:57:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fPvbr-0003LT-0x for submit@debbugs.gnu.org; Mon, 04 Jun 2018 15:57:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPvbp-0003cH-Nu for bug-guix@gnu.org; Mon, 04 Jun 2018 15:57:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPvbl-0003JG-OQ for bug-guix@gnu.org; Mon, 04 Jun 2018 15:57:41 -0400 Received: from pelzflorian.de ([5.45.111.108]:36298 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fPvbl-0003IQ-AS for bug-guix@gnu.org; Mon, 04 Jun 2018 15:57:37 -0400 Received: from floriannotebook (ip5b434e10.dynamic.kabel-deutschland.de [91.67.78.16]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 33D00360023 for ; Mon, 4 Jun 2018 21:56:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1528142210; bh=iA6jkuhwX1Qh/hs7MtGcbA2ybYoI5ESS4Zji1UyfStc=; h=Date:From:To:Subject; b=YxYtzpUO90qvOtNl1eJSC/F6J3ySLkszvuqQDVCvA/OhxNFhuHgmk20gor4+qw6jd 99cPRuWsPZdM6v0wA78+MXqaIpWQnAT0hF2E4YkBbZhWQxY1iCJLH5GvfZs91Yz/jk nC02LNc+ulxACAmAYa91bMPd9XOvfmwgIjMSLWT8= Date: Mon, 4 Jun 2018 21:57:32 +0200 From: "pelzflorian (Florian Pelz)" To: bug-guix@gnu.org Subject: Cannot use usb-storage initrd module. Message-ID: <20180604195732.tbt5uwhzouzxoyxk@floriannotebook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180323 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) My laptop broke and now I use my formerly internal hard disk as an external hard disk in another laptop. It booted fine but I could not reconfigure maybe because Guix checks for a wrong spelling of the usb-storage module. When I pulled 1458f768c1049812166228b8526128b199518e50 and reconfigured I was told to use (operating-system ... (initrd-modules (append (list "uas" "usb_storage") %base-initrd-modules)) However the module is apparently called usb-storage with a hyphen, the path is /gnu/store/9idmpc60bgah6cy6s0k739kpj9qz50qc-linux-libre-4.16.13/lib/modules/4.16.13-gnu/kernel/drivers/usb/storage/usb-storage.ko Possibly for this reason I got an error /home/florian/keep/guixsd/guixsd-mac.scm:85:22: warning: 'title' field is deprecated The following derivations will be built: /gnu/store/3rk9b4k6797h0yg7m7fbm8jv920cy2cq-system.drv /gnu/store/bkhkin2lils3jb3g6j8v14yn50d97xxh-grub.cfg.drv [...] /gnu/store/l5bglmivni7211gi52gh3z7wvxlhn0b7-module-import-compiled.drv /gnu/store/ys5drlyhchjzvdbib2wc46xp2ybx1w52-linux-modules.drv /gnu/store/1xjispr77v2q6d8xxlygvg89ls2w79cv-init.drv /gnu/store/05knsd3pq0xjd8lw86rz8a7w5dl181c0-raw-initrd.drv Backtrace: 6 (primitive-load "/gnu/store/09v5nd445bk4qkcy2ya84swhbri?") In ice-9/eval.scm: 619:8 5 (_ #f) 626:19 4 (_ #) 293:34 3 (_ #) In srfi/srfi-1.scm: 592:29 2 (map1 _) 592:17 1 (map1 ("usb_storage" "ahci" "usb-storage" "uas" "usb?" ?)) In unknown file: 0 (scm-error misc-error #f "~A ~S ~S" ("module not fo?" ?) ?) ERROR: In procedure scm-error: module not found "usb_storage.ko" "/gnu/store/9idmpc60bgah6cy6s0k739kpj9qz50qc-linux-libre-4.16.13/lib/modules" builder for `/gnu/store/ys5drlyhchjzvdbib2wc46xp2ybx1w52-linux-modules.drv' failed with exit code 1 cannot build derivation `/gnu/store/1xjispr77v2q6d8xxlygvg89ls2w79cv-init.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/05knsd3pq0xjd8lw86rz8a7w5dl181c0-raw-initrd.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/bkhkin2lils3jb3g6j8v14yn50d97xxh-grub.cfg.drv': 1 dependencies couldn't be built guix system: error: build failed: build of `/gnu/store/bkhkin2lils3jb3g6j8v14yn50d97xxh-grub.cfg.drv' failed But when I use (operating-system ... (initrd-modules (append (list "uas" "usb-storage") %base-initrd-modules)) then I get an error because I should spell it usb_storage. /home/florian/keep/guixsd/guixsd-mac.scm:85:22: warning: 'title' field is deprecated /home/florian/keep/guixsd/guixsd-mac.scm:80:9: error: you may need these modules in the initrd for /dev/sdc2: uas usb_storage hint: Try adding them to the `initrd-modules' field of your `operating-system' declaration, along these lines: (operating-system ;; ... (initrd-modules (append (list "uas" "usb_storage") %base-initrd-modules))) Eventually I changed gnu/system/mapped-devices.scm to replace (when aliases (let ((modules (delete-duplicates (append-map (cut matching-modules <> aliases) (device-module-aliases device))))) (unless (every (cute member <> linux-modules) modules) (raise (condition (&message (message (format #f (G_ "you may need these modules \ in the initrd for ~a:~{ ~a~}") device modules))) (&fix-hint (hint (format #f (G_ "Try adding them to the ... by #t. Then it successfully reconfigured. I tested again Guix commit 19b662ea7c53a28270a783f10ca033d8c9d2a954 today and it is still broken. ------------=_1529012343-26161-3--