linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pass modules to Linux kernel without initrd
@ 2020-12-08  9:24 Paul Menzel
  2020-12-08  9:38 ` Enrico Weigelt, metux IT consult
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paul Menzel @ 2020-12-08  9:24 UTC (permalink / raw)
  To: LKML; +Cc: Luis Chamberlain, Hans de Goede, Ben Hutchings

Dear Linux folks,


Trying to reduce the boot time of standard distributions, I would like 
to get rid of the initrd. The initrd is for mounting the root file 
system and on most end user systems with standard distributions that 
means loading the bus driver for the drive and the file system driver. 
Everyone could build their own Linux kernel and build the drivers into 
the Linux kernel, but most users enjoy using the distribution Linux 
kernel, which build the drivers as modules to support a lot of systems. 
(I think Fedora builds the default file system driver (of the installer) 
into the Linux kernel.)

A custom minimal initrd init script only loading the modules would also 
work, but as libkmod depends on libcrypto, which as a shared library is 
already three megabytes in size. Building libkmod statically would mean 
for distributions, that you need hooks to rebuild libkmod each time 
OpenSSL is updated (to get the changes).

Similar to passing firmware and microcode update files to Linux or 
building these into the Linux kernel image, would it be possible to 
append the required modules to the Linux kernel image, and Linux would 
load these?

Probably you are going to say, that is not how it works, but maybe I am 
lucky and you know a solution, or could point me to the right direction 
how such a think could be implemented.


Kind regards,

Paul

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-08 20:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08  9:24 Pass modules to Linux kernel without initrd Paul Menzel
2020-12-08  9:38 ` Enrico Weigelt, metux IT consult
2020-12-08 10:58   ` Paul Menzel
2020-12-08 13:19     ` Enrico Weigelt, metux IT consult
2020-12-08 18:10 ` Ben Hutchings
2020-12-08 18:53 ` Theodore Y. Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).