Ask Your Question

Change default compression initramfs

asked 2014-04-22 12:46:52 -0500

bubexp gravatar image

updated 2014-04-23 09:12:36 -0500

mether gravatar image


How can I change default initramfs compression? If I read it right, I can create a new initramfs image with compression of my choice with dracut. But, how can I make a default compression to be always used for every new kernel install?

In arch, I would change /etc/mkinitcpio.conf. How can I do the same with Fedora?

Thanks a lot!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-22 17:24:14 -0500

NickTux gravatar image

updated 2014-04-22 17:26:26 -0500

You can specify the compression in /etc/dracut.conf file. Be aware that dracut does not support some of the compression like lzo , lz4 or lzma . But bzip2 , xz and gzip are supported. gzip is the default compression anyway and also an uncompressed image can be generated with cat.

The option is

compress=<compression here> ,

so a compress=xz will compress the image with xz compression ..etc.

I would suggest to uncomment also


so you can see any errors or relevant messages and also generate the image with -v option like

sudo dracut --force -v

edit flag offensive delete link more


Thank you,

Great explanation.

Best regards

bubexp gravatar imagebubexp ( 2014-04-22 17:57:24 -0500 )edit

Question Tools


Asked: 2014-04-22 12:46:52 -0500

Seen: 2,371 times

Last updated: Apr 22 '14