Should I Compress My Initramfs?

TL;DR As a small start-up time optimization, you can pick the best suited compression algorithm for the initial ramdisk. The Initial Ramdisk When a Linux system boots, it needs to mount the root filesystem /. This may be relatively complicated, as it may be on a software RAID, on LVM, encrypted… To keep things manageable, an initial ramdisk can be used to get a small environment that has all the required modules and configuration to load the root filesystem. On Arch Linux, this initial ramdisk is generated using mkinitcpio. It takes multiple parameters to tune various aspects of the system and of the generated ramdisk. ...

August 31, 2022 · 5 min · Clément Joly