Replies: 3 comments
-
Arch's mkinitcpio default ZSTD compression setting is -19 compared to -15 of dracut. I believe that's the difference in size. |
Beta Was this translation helpful? Give feedback.
-
That can not be it. Even with xz compression with mkinitcpio and with dracut the size difference is significant. |
Beta Was this translation helpful? Give feedback.
-
To compare apples to apples regarding size and compression you will have to ensure that both resulting initramfs images contain the same content inside the initramfs image. Anyway converting the issue to discussion since a dialogue about performance, size, compression and general comparison belongs there ( as well as it prevents this issue being eaten up by the stale bot ). Once a consensus on how these might be improved ( or a saner default ) an enhancement issue and or better yet pr can be made to implement that consensus. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The initramfs created by dracut is 3 times bigger than the img file I get from mkinitcpio. Is that expected / normal?
I am using zstd compression on both sides:
dracut commandline to create the file was:
dracut --force --no-hostonly-cmdline --hostonly /boot/initramfs-linux.img --kver 5.9.12-arch1-1
I dont know why this commandline shows "
--no-hostonly-cmdline --hostonly
" at the same time. This is coming automatically on arch. But anyways, even if I take out --no-hostonly-cmdline
or--hostonly
the size is still 19M.Distribution used
EndeavourOS
Dracut version
dracut 050-1
Init system
systemd 247-1
Beta Was this translation helpful? Give feedback.
All reactions