Ask Your Question
0

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

Hi,

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
0

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

logfile=/var/log/dracut.log
fileloglvl=6

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

Comments

Thank you,

Great explanation.

Best regards

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

Question Tools

Stats

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

Seen: 2,371 times

Last updated: Apr 22 '14