From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 29 12:53:33 2018 Received: (at 31714-done) by debbugs.gnu.org; 29 Jul 2018 16:53:33 +0000 Received: from localhost ([127.0.0.1]:34031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjowl-0001cL-O3 for submit@debbugs.gnu.org; Sun, 29 Jul 2018 12:53:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjowk-0001c8-5P for 31714-done@debbugs.gnu.org; Sun, 29 Jul 2018 12:53:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fjowd-000866-Pd for 31714-done@debbugs.gnu.org; Sun, 29 Jul 2018 12:53:24 -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]:42412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fjowd-00085y-KO; Sun, 29 Jul 2018 12:53:23 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50610 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fjowd-0000SU-5x; Sun, 29 Jul 2018 12:53:23 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Tonton Subject: Re: bug#31714: Cannot use usb-storage initrd module. References: <20180604195732.tbt5uwhzouzxoyxk@floriannotebook> <20180710133732.492d5388@merlin.browniehive.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 Thermidor an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 29 Jul 2018 18:53:21 +0200 In-Reply-To: <20180710133732.492d5388@merlin.browniehive.net> (Tonton's message of "Tue, 10 Jul 2018 13:39:05 +0200") Message-ID: <87sh42c7b2.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: 31714-done Cc: 31714-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, Tonton skribis: > My config contained: > > (initrd (lambda (file-systems . rest) > ;; Add a kernel module for RAID-0 (aka. "stripe") > ;; and RAID-1 (aka. "mirror"). > (apply base-initrd file-systems > #:extra-modules '("raid0" "raid1") > rest))) > > And I got an error from guix system reconfigure/build: > > : error: you may need these modules in the initrd > for /dev/sdg2: uas usb_storage > hint: Try adding them to the `initrd-modules' field of your > `operating-system' declaration, (initrd-modules (append (list "uas" > "usb_storage") [...] > This works if I use --skip-checks. But with checks it gives me the same e= rror > as above, changing the initrd-modules line to: > > (initrd-modules (append (list "uas" "usb_storage" "raid0" "raid1") > > Gives the following error: > > The following derivations will be built: > /gnu/store/p5sash3cqywp5kmb9dwh8kbxy0rrdmc0-system.drv > /gnu/store/g7pfwc7386x1bxf5pdv5nh1xz6ywxgxm-grub.cfg.drv > /gnu/store/w57aw36wpc0388aa1frkj7h7qh8xac6z-parameters.drv > /gnu/store/kh9v5z295kz4p79q3kancdv8d86n3cxr-linux-modules.drv > /gnu/store/pbrj245mgv9zcy3shid348n8qdpv468v-init.drv > /gnu/store/mvl7lb92g39d0qw08r2l2qiysvdf0sgs-raw-initrd.drv > Backtrace: > 6 (primitive-load "/gnu/store/hj17134gdpixdpif8nljwyh31k1?") > 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" "raid0" "raid1" "ahci" "usb-sto?" ?)) > 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/khxmq6p1470171537z8agikiqmi469jr-linux-libre-4.17/lib/modules" > builder for `/gnu/store/kh9v5z295kz4p79q3kancdv8d86n3cxr-linux-modules.dr= v' The problem was that the hint would specify =E2=80=9Cusb_storage=E2=80=9D, = which is the correct module name but not the right *file* name (it=E2=80=99s =E2=80=9Cus= b-storage=E2=80=9D, notice the hyphen.) This is fixed in commit fcd068e984078ab74c6842af2525bf88096cd262, which takes a sledgehammer approach: it tries hyphen and underscore file names, such that =E2=80=98initrd-modules=E2=80=99 can contain either =E2=80= =9Cusb_storage=E2=80=9D or =E2=80=9Cusb-storage=E2=80=9D. Thanks, Ludo=E2=80=99.