]> git.ipfire.org Git - thirdparty/dracut.git/commit
Add lzo, lz4 compression and read INITRD_COMPRESS
authorP J P <ppandit@redhat.com>
Fri, 11 Oct 2013 13:56:51 +0000 (19:26 +0530)
committerHarald Hoyer <harald@redhat.com>
Mon, 14 Oct 2013 07:38:06 +0000 (09:38 +0200)
commit871c8e40d1c7bb1bace48ce19ea1b956f7065458
tree61449301fc2ac80f49a0ef27672304ffd172e17f
parent1aedbb788696f4ead7fa338edab4b3dcbbe3c8f0
Add lzo, lz4 compression and read INITRD_COMPRESS

This patch adds support for lzop(1) & lz4(1) compression
algorithms to compress iniramfs image file. Both are supported
by the Linux kernel.

Linux kernel exports user's choice of initramfs compression
algorithm as a shell environment variable: INITRD_COMPRESS.
This patch adds support to read this variable and duly compress
the initramfs image file.

Environment variable INITRD_COMPRESS has less precedence than the
command line options --gzip, etc. Ie. command line options could
override the compression algorithm defined by $INITRD_COMPRESS.

Signed-off-by: P J P <ppandit@redhat.com>
[Edited-by: Harald Hoyer: add documentation about lzo and lz4]
dracut.8.asc
dracut.sh