From 3041c946e22f5e461ce25ea546b0b583e55ad578 Mon Sep 17 00:00:00 2001 From: bert schulze Date: Fri, 9 Apr 2010 19:13:38 +0200 Subject: 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 --- mkinitramfs | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3