diff options
author | bert schulze <spambemyguest@googlemail.com> | 2010-04-09 19:13:38 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2010-04-10 06:30:20 +0200 |
commit | 3041c946e22f5e461ce25ea546b0b583e55ad578 (patch) | |
tree | 9233471343c4cc728764404fc9e1a1ec62f997ba | |
parent | 6e9a3ba17b49c08cd2d42d320c5258fa142e5e93 (diff) | |
download | initramfs-tools-3041c946e22f5e461ce25ea546b0b583e55ad578.tar.gz initramfs-tools-3041c946e22f5e461ce25ea546b0b583e55ad578.zip |
mkinitramfs: use -9 for lzop
"You do want to use -9 as far as LZO is concerned. The compression ratio is way
better, and the extraction time is actually *not* related to the
compression level" Albin Tonnerre
already pointed that out to Maximilian, forgot to put you on CC. Let's
keep the gzip "speed enthusiasts" happy and enable -9 for lzop only.
Signed-off-by: maximilian attems <maks@debian.org>
-rwxr-xr-x | mkinitramfs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mkinitramfs b/mkinitramfs index 837bbd1..e249d32 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -145,6 +145,8 @@ if ! `grep -q -i ^config_rd_${COMPRESS%p} /boot/config-${version}` ; then echo "linux-2.6 misses ${COMPRESS} support, using gzip" fi +[ "${compress}" = lzop ] && compress="lzop -9" + if [ -d "${outfile}" ]; then echo "${outfile} is a directory" exit 1 |