From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH] linux-initrd: Add AHCI modules. Date: Fri, 18 Jul 2014 11:39:45 -0400 Message-ID: <87mwc6wu9q.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8AGQ-0002b7-Tr for guix-devel@gnu.org; Fri, 18 Jul 2014 11:40:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8AGG-0003VR-3X for guix-devel@gnu.org; Fri, 18 Jul 2014 11:40:02 -0400 Received: from na3sys009aog129.obsmtp.com ([74.125.149.142]:47164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8AGF-0003V5-Rf for guix-devel@gnu.org; Fri, 18 Jul 2014 11:39:52 -0400 Received: by mail-qa0-f45.google.com with SMTP id cm18so3083484qab.18 for ; Fri, 18 Jul 2014 08:39:49 -0700 (PDT) Received: from izanagi (209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com. [209.6.40.86]) by mx.google.com with ESMTPSA id s96sm6543332qgs.26.2014.07.18.08.39.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jul 2014 08:39:48 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain One problem that Mark Weaver and I encountered when intalling the GNU system on our Thinkpad X60s was that initrd couldn't boot from our SATA hard disks without passing additional kernel modules in the operating-system declaration. I think it would make a lot of sense to have these modules loaded by default, given the widespread use of SATA disks. I doubt that hardcoding the AHCI module names into linux-modules is the preferred way to do this, but I wanted to propose something simple to get the discussion started. :) Thoughts? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-linux-initrd-Add-AHCI-modules.patch >From 2c9599720a8646a79fb3cb9517f7f0e6f1bfa25f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 18 Jul 2014 11:03:02 -0400 Subject: [PATCH] linux-initrd: Add AHCI modules. * gnu/system/linux-initrd (linux-modules): Add them. --- gnu/system/linux-initrd.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index 9e39f2d..62f95c5 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm @@ -249,7 +249,8 @@ exception and backtrace!)." (define linux-modules ;; Modules added to the initrd and loaded from the initrd. - `(,@(if (or virtio? qemu-networking?) + `("libahci.ko" "ahci.ko" ; modules for SATA controllers + ,@(if (or virtio? qemu-networking?) virtio-modules '()) ,@(if (find (file-system-type-predicate "cifs") file-systems) -- 2.0.0 --=-=-= Content-Type: text/plain -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate --=-=-=--