From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: bug#31714: Cannot use usb-storage initrd module. Date: Mon, 4 Jun 2018 21:57:32 +0200 Message-ID: <20180604195732.tbt5uwhzouzxoyxk@floriannotebook> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPvcE-0003cm-LO for bug-guix@gnu.org; Mon, 04 Jun 2018 15:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPvcA-0003VC-OA for bug-guix@gnu.org; Mon, 04 Jun 2018 15:58:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53991) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPvcA-0003V4-II for bug-guix@gnu.org; Mon, 04 Jun 2018 15:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPvcA-0007GZ-8F for bug-guix@gnu.org; Mon, 04 Jun 2018 15:58:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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) Content-Disposition: inline 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: 31714@debbugs.gnu.org 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.