Re: Kernel modules in initrd

2018-02-28 Thread Ludovic Courtès
Danny Milosavljevic skribis: > On Tue, 27 Feb 2018 20:32:49 +0100 > Danny Milosavljevic wrote: > >> > > P.S. How come glibc is in the initrd? Shouldn't guile have statically >> > > linked it? >> > > glibc is like 5 kiB. In that case saving 800 kiB is not really >> > > worth it... >>

Re: Kernel modules in initrd

2018-02-27 Thread Danny Milosavljevic
On Tue, 27 Feb 2018 20:32:49 +0100 Danny Milosavljevic wrote: > > > P.S. How come glibc is in the initrd? Shouldn't guile have statically > > > linked it? > > > glibc is like 5 kiB. In that case saving 800 kiB is not really worth > > > it... > > > > One of the packages that ends up i

Re: Kernel modules in initrd

2018-02-27 Thread Danny Milosavljevic
> > P.S. How come glibc is in the initrd? Shouldn't guile have statically > > linked it? > > glibc is like 5 kiB. In that case saving 800 kiB is not really worth > > it... > > One of the packages that ends up in the initrd must be dynamically > linked. You need to find out which one it

Re: Kernel modules in initrd

2018-02-27 Thread Ludovic Courtès
Hello, ng0 skribis: > Ludovic Courtès transcribed 0.8K bytes: >> Hello, >> >> Mark H Weaver skribis: >> >> > To make this easier, I think the right approach is to include many >> > modules like these to our installation image initrd, and then to >> > automatically detect which modules are nee

Re: Kernel modules in initrd

2018-02-27 Thread Ludovic Courtès
Danny Milosavljevic skribis: > So what we would need next is something like modprobe written in guile. > > I think that ./gnu/build/linux-modules.scm load-linux-module* already does > that. > > The only part missing is to replace %modprobe-wrapper by a guile script > which imports ./gnu/build/li

Re: Kernel modules in initrd

2018-02-26 Thread Danny Milosavljevic
Hi Ludo, On Mon, 26 Feb 2018 16:20:08 +0100 l...@gnu.org (Ludovic Courtès) wrote: > I suppose the bits I’ve promised to detect necessary modules based on > modules.alias and /sys should be useful here? Definitely! I've posted a working patch series (v3, "Load Linux module only when supported ha

Re: Kernel modules in initrd

2018-02-26 Thread Ludovic Courtès
Hello, Danny Milosavljevic skribis: > 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... hm

Re: Kernel modules in initrd

2018-02-25 Thread Danny Milosavljevic
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

Re: Kernel modules in initrd

2018-02-24 Thread ng0
Ludovic Courtès transcribed 0.8K bytes: > Hello, > > Mark H Weaver skribis: > > > To make this easier, I think the right approach is to include many > > modules like these to our installation image initrd, and then to > > automatically detect which modules are needed for booting. A future > > e

Re: Kernel modules in initrd

2018-02-23 Thread Andreas Enge
Hello, 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

Re: Kernel modules in initrd

2018-02-23 Thread Ludovic Courtès
Hello, Mark H Weaver skribis: > To make this easier, I think the right approach is to include many > modules like these to our installation image initrd, and then to > automatically detect which modules are needed for booting. A future > easy installer could automatically add those modules to t

Re: Kernel modules in initrd

2018-02-23 Thread Danny Milosavljevic
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

Re: Kernel modules in initrd

2018-02-22 Thread Danny Milosavljevic
Hi Mark, On Thu, 22 Feb 2018 17:01:11 -0500 Mark H Weaver wrote: > Every extra loaded kernel module means more RAM usage in the kernel, a > larger initrd image that must be loaded by possibly slow bootloaders, > and code complexity in the running kernel, leading to a greater attack > surface for

Re: Kernel modules in initrd

2018-02-22 Thread Mark H Weaver
Hi Andreas, Andreas Enge writes: > recently I had an unpleasant experience in installing GuixSD: After booting > with the USB key and following the installation instructions, then rebooting > into the installed system, the "/" file system was not found: neither using > file system labels, nor de

Re: Kernel modules in initrd

2018-02-22 Thread Andreas Enge
Hello Danny, On Thu, Feb 22, 2018 at 10:34:03PM +0100, Danny Milosavljevic wrote: > When you booted from the USB key the system DIDN'T need mptsas to find > ITS root filesystem. So it booted fine and in the end of it all you had > a working GNU Linux, with udev. > > Then udev saw the hard disk a

Re: Kernel modules in initrd

2018-02-22 Thread Danny Milosavljevic
Hi, On Thu, 22 Feb 2018 22:29:25 +0100 Jan Nieuwenhuizen wrote: > (initrd (lambda (file-systems . rest) > (apply base-initrd file-systems > #:extra-modules '("pata_via" "pata_acpi" "sata_via") > rest))) Hmm, see gnu/system/linux-initrd

Re: Kernel modules in initrd

2018-02-22 Thread Danny Milosavljevic
Hi Andreas, On Thu, 22 Feb 2018 22:17:07 +0100 Andreas Enge wrote: > The problem turned out to be that the disk of the machine needed special > kernel modules, and adding > (initrd (lambda (file-systems . rest) > (apply base-initrd file-systems >#:extra-modules

Re: Kernel modules in initrd

2018-02-22 Thread Jan Nieuwenhuizen
Andreas Enge writes: > The problem turned out to be that the disk of the machine needed special > kernel modules, and adding > (initrd (lambda (file-systems . rest) > (apply base-initrd file-systems >#:extra-modules '("mptbase" "mptsas" "mptscsih") >

Kernel modules in initrd

2018-02-22 Thread Andreas Enge
Hello, recently I had an unpleasant experience in installing GuixSD: After booting with the USB key and following the installation instructions, then rebooting into the installed system, the "/" file system was not found: neither using file system labels, nor device nodes. The problem turned out