Le vendredi 28 juin 2013 à 09:19 +0200, Ludwig Nussel a écrit :
Frederic Crozat wrote:
Le jeudi 27 juin 2013 à 12:59 +0200, Stephan Kulow a écrit :
On 27.06.2013 12:54, Jan Engelhardt wrote:
On Thursday 2013-06-27 11:14, Arvin Schnell wrote:
I want you to tell your opinions .
The initrd is terrible big, around 32MB. That should be fixed.
Definitely. 10-15 years ago we had fat initrds that included a handful of disk drivers. Today, mkinitrd is smart to look at the root device and figure out the _single one_ driver needed. Except not quite... it adds DHs, which are just bloat to me:
Of course the things you consider bloat here are worth one MB or less. The real bloat is the bootsplash graphics. In the old days the initrd has one graphic to load and the animation started only when the early boot process took over. Nowadays plymouth needs to be in the intird and this adds *really* a lot. Plus we add splashy, which is even less needed.
Someone will have to maintain this some day ;(
Before "maintaining", we need to clean this "mess". We should switch to dracut (which is maintained and allow smaller initrd), see if we can reduce plymouth footprint (it is mostly caused by the text support for passphrase) and get right of splashy (it is pulled by suspend, which is strange, I implemented plymouth support in suspend a lot time ago..).
Even if dracut manages to save a few bytes because it has the more magic shell code that won't make a difference as long as plymouth just adds 20+MB extra to display a padlock icon with some text. Maybe we should forget about plymouth in initrd as it's supposed to be done quickly anyways. Who cares how colorful that encrypted root password prompt is.
Plymouth itself doesn't add 20MB to initrd, it is the label.so plugin and its dependencies which do that (upstream doesn't display text for passphrase prompt, just a padlock icon. We should probably pre-render the text for the passphrase prompt into a transparent png file when generating initrd, and display this png file as a sprite (just like the padlock icon is being display ATM) in initrd. This way, text plugin and its deps wouldn't land in initrd. -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org