summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbert schulze <spambemyguest@googlemail.com>2010-04-09 19:13:38 +0200
committermaximilian attems <maks@debian.org>2010-04-10 06:30:20 +0200
commit3041c946e22f5e461ce25ea546b0b583e55ad578 (patch)
tree9233471343c4cc728764404fc9e1a1ec62f997ba
parent6e9a3ba17b49c08cd2d42d320c5258fa142e5e93 (diff)
downloadinitramfs-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-xmkinitramfs2
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