Can Initramfs Image Use Compression Format Other Than Gzip?

compressiongzipinitrdlinux

Can the initramfs image be compressed by a method other than gzip, such as lzma?

Best Answer

Yes. I use in-kernel initrd and it offers at least the following methods:

  • None (as it is compressed with kernel)
  • GZip
  • BZip
  • LZMA (possibly zen-only)

EDIT: You can use it on external file and with LZMA (at least on ubuntu).

EDIT 2: Wikipedia states that Linux kernel supports gzip, bzip and lzma (depending, of course, what algorithms are compiled in).

Related Question