From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Kernel modules in initrd Date: Sun, 25 Feb 2018 12:43:30 +0100 Message-ID: <20180225124330.2e706537@scratchpost.org> References: <20180222211707.GB9758@jurong> <87eflck7ko.fsf@netris.org> <20180223020029.3babc4fa@scratchpost.org> <20180223152855.6a08f8bd@scratchpost.org> <20180223230239.GA6140@jurong> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epuiU-0008R9-S8 for guix-devel@gnu.org; Sun, 25 Feb 2018 06:43:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epuiR-00032y-Qm for guix-devel@gnu.org; Sun, 25 Feb 2018 06:43:42 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:39730) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1epuiR-0002xN-JY for guix-devel@gnu.org; Sun, 25 Feb 2018 06:43:39 -0500 In-Reply-To: <20180223230239.GA6140@jurong> 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" To: Andreas Enge Cc: guix-devel@gnu.org Hi Andreas, On Sat, 24 Feb 2018 00:02:39 +0100 Andreas Enge wrote: > On Fri, Feb 23, 2018 at 03:28:55PM +0100, Danny Milosavljevic wrote: > > No, wait, according to https://unix.stackexchange.com/questions/43699/debian-does-not-detect-serial-pci-card-after-reboot/43723#43723 , > > the kernel should be doing that even without udev. Are we sure we need to manually modprobe the stuff in gnu/build/linux-boot.scm in > > the first place? I think we should just add kmod to the initrd - that's it. > > in that case, if I understand correctly, the security question would not > be a problem any more, right, as only really needed modules would be loaded > by the kernel? Then we could add more modules to the initrd. Yes. I've got it to work now. I've got a very minimal static kmod into the initrd and that's now only loading modules for which supported hardware is present. On the other hand, the initrd got 800 kiB larger - I'm not sure why modprobe is so big... hmm... Let's see the part Ludo adds to guix system init. Maybe we can also replace modprobe by it - if we want.