From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#34902: guix cannot find a module on boot Date: Mon, 18 Mar 2019 21:42:29 +0100 Message-ID: <87o967lxsa.fsf@gnu.org> References: <813466538d530a38bddf60ed348cb75b@lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5z67-0002yZ-Ia for bug-guix@gnu.org; Mon, 18 Mar 2019 16:43:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5z66-0006sT-L6 for bug-guix@gnu.org; Mon, 18 Mar 2019 16:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h5z66-0006s8-AT for bug-guix@gnu.org; Mon, 18 Mar 2019 16:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h5z66-0005VW-6C for bug-guix@gnu.org; Mon, 18 Mar 2019 16:43:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <813466538d530a38bddf60ed348cb75b@lepiller.eu> (Julien Lepiller's message of "Mon, 18 Mar 2019 10:17:14 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Julien Lepiller Cc: 34902@debbugs.gnu.org Hi Julien, Julien Lepiller skribis: > I've installed the Guix system on my cubietruck yesterday, but had > some difficulties. At first, the root partition was not available at > boot, so I got a repl with a message saying that /dev/mmcblk0p1 was > not available. I added the following to my guix config file: > > (initrd-modules (cons "sunxi_mmc" %base-initrd-modules)) Didn=E2=80=99t =E2=80=98guix system init=E2=80=99 suggest adding this modul= e? Could it be that this module was actually built-in in the kernel you booted? > although the guix system command worked, the produced system still > couldn't boot, but this time the message was that guix was unable to > find sunxi_mmc.ko. Using the repl I could confirm that this module was > indeed here, but under the name sunxi-mmc.ko. Using > load-linux-module*, I was able to confirm that loading it made the > filesystem available in /dev. In the end this line: > > (initrd-modules (cons "sunxi-mmc" %base-initrd-modules)) > > was the right line to add, and I could properly boot my cubietruck! Phewww. > The bug here is that guix should either be smarter and load > sunxi-mmc.ko when it can't find sunxi_mmc.ko, or not allow me to build > a system when I specify sunxi_mmc since it doesn't exist at boot time. This underscore vs. hyphen thing is terrible. In commit fcd068e984078ab74c6842af2525bf88096cd262 we fixed the initrd builder so it would try both file underscore and hyphen. But now I suppose we need to do the same in =E2=80=98load-linux-module*=E2= =80=99? Thanks, Ludo=E2=80=99.