Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing module in initramfs : haw to know which one, and how to add it.

224 views
Skip to first unread message

Erwan David

unread,
Oct 14, 2022, 1:20:05 AM10/14/22
to
Hi,

Some times ago I went from modules=most to modules=dep in initramfs,
because /boot was too small.

the machine is a laptop usually standalone but from time to time
connected to a dock with external USB keyboard

Today at boot : external keyboard worked for grub, did not work for
entering LUKS key, and works once system is started. This I deduce I
need some supplementary module(s) in the initrd. Is there a way to
identify those modules and add them ?

Erwan David

unread,
Oct 14, 2022, 1:40:05 AM10/14/22
to
Ok, I did an update-initramfs -v -u with and without the dock, now I
have a list of modules added for my dock installation. I'll check how to
force them being in the initrd even if devices are not detected at
generation time.

Erwan David

unread,
Oct 14, 2022, 3:20:06 AM10/14/22
to
I got my modules list, I put the list in /etc/iniramfs-tools/modules,
update-initramfs -v -u : they are not added to the initrd

man initramfs-tools says

Modules listed in /etc/initramfs-tools/modules and
/usr/share/initramfs-tools/modules.d/* are always included in the
initramfs, and are loaded early in the boot process.

So I do not understand what I should do

Erwan David

unread,
Oct 14, 2022, 3:40:06 AM10/14/22
to
Le 14/10/2022 à 09:12, Erwan David a écrit :
>
> I got my modules list, I put the list in /etc/iniramfs-tools/modules,
> update-initramfs -v -u : they are not added to the initrd
>
> man initramfs-tools says
>
> Modules listed in /etc/initramfs-tools/modules and
> /usr/share/initramfs-tools/modules.d/* are always included in the
> initramfs, and are loaded early in the boot process.
>
> So I do not understand what I should do
>

Ok, solved : there shouldbe no white line in the file...

Thanks for listening this helped me to find the errors

to...@tuxteam.de

unread,
Oct 14, 2022, 3:50:05 AM10/14/22
to
debian-user, the collective rubber duck [1] ;-)

Now seriously: thanks for articulating your problem so clearly and
following up on it later -- some of us learnt something today.

Cheers

[1] https://en.wikipedia.org/wiki/Rubber_duck_debugging
--
t
signature.asc

Stefan Monnier

unread,
Oct 14, 2022, 10:00:06 AM10/14/22
to
>> I got my modules list, I put the list in /etc/iniramfs-tools/modules,
>> update-initramfs -v -u : they are not added to the initrd
>> man initramfs-tools says
>> Modules listed in /etc/initramfs-tools/modules and
>> /usr/share/initramfs-tools/modules.d/* are always included in the
>> initramfs, and are loaded early in the boot process.
>> So I do not understand what I should do
>>
>
> Ok, solved : there shouldbe no white line in the file...

I think you found a bug: either the code should not trip on white lines,
or it should emit a warning when it finds one, and/or the doc should clarify
the intended syntax.


Stefan
0 new messages