[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Kernel modules in initrd
From: |
Ludovic Courtès |
Subject: |
Re: Kernel modules in initrd |
Date: |
Tue, 27 Feb 2018 16:02:16 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Danny Milosavljevic <address@hidden> 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/linux-modules.scm load-linux-module*, interprets
> some of the modprobe options and then masquerades as modprobe without invoking
> modprobe.
>
> The reason is that the kernel calls us back when it needs a module (for
> example when you mount something and it needs a charset converter or
> something).
>
> (the name of the executable invoked is configured via
> /proc/sys/kernel/modprobe)
>
> This can happen quite early in the boot process - and it took me some time
> to get the order and also the environment variables right. We should be able
> to reuse that for the pure Guile modprobe.
>
> After the patch we don't *manually* load any of the modules - and all the
> tests work. I booted my system with it - that also works.
I see, that’s a workable plan, we should do that!
> P.S. How come glibc is in the initrd? Shouldn't guile have statically linked
> it?
> glibc is like 50000 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 is.
Thanks for the explanations!
Ludo’.
- [PATCH] linux-initrd: Add ATA and SAS modules to the default set of modules., (continued)
- Re: Kernel modules in initrd, Mark H Weaver, 2018/02/22
- Re: Kernel modules in initrd, Danny Milosavljevic, 2018/02/22
- Re: Kernel modules in initrd, Danny Milosavljevic, 2018/02/23
- Re: Kernel modules in initrd, Andreas Enge, 2018/02/23
- Re: Kernel modules in initrd, Danny Milosavljevic, 2018/02/25
- Re: Kernel modules in initrd, Ludovic Courtès, 2018/02/26
- Re: Kernel modules in initrd, Danny Milosavljevic, 2018/02/26
- Re: Kernel modules in initrd,
Ludovic Courtès <=
- Re: Kernel modules in initrd, Danny Milosavljevic, 2018/02/27
- Re: Kernel modules in initrd, Danny Milosavljevic, 2018/02/27
- Re: Kernel modules in initrd, Ludovic Courtès, 2018/02/28
Re: Kernel modules in initrd, Ludovic Courtès, 2018/02/23