distr1 / distri

a Linux distribution to research fast package management
https://distr1.org
Other
536 stars 26 forks source link

dracut: slim down initramfs, speed up generation #22

Closed stapelberg closed 4 years ago

stapelberg commented 5 years ago

With #1 fixed, we have a lot more Linux kernel modules. The images we produce cannot use dracut’s hostonly mode (individual users can, though). It would be nice to exclude e.g. SCSI modules (largest in terms of file size) from the generic dracut initrd, as it is very unlikely that someone needs to boot the distri live image from a SCSI storage system (they can still install onto it).

Here are a couple of avenues to investigate:

stapelberg commented 4 years ago

This is obsolete with minitrd: https://michael.stapelberg.ch/posts/2020-01-21-initramfs-from-scratch-golang/

anatol commented 4 years ago

minimalistic initram would be beneficial for the community and people who does not plan to use distri os. Are there any plans to release minitrd as a standalone project that can be used with other distros?

stapelberg commented 4 years ago

No: https://michael.stapelberg.ch/posts/2020-01-21-initramfs-from-scratch-golang/#minitrd-outside-of-distri