From 914d5b391105a40945a6f88911cf95a701e1c68c Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 16 Feb 2012 11:40:32 -0500 Subject: mkinitcpio: unzip modules before image compression This increases compression efficiency, which might be useful on an image containing a lot of modules. For the usecase I had in mind, this reduced the size by about a quarter. Signed-off-by: Tom Gundersen Signed-off-by: Dave Reisner --- mkinitcpio | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkinitcpio b/mkinitcpio index f79fbcb..637795f 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -341,6 +341,9 @@ trap '(( ++builderrors ))' ERR if (( ${#ADDED_MODULES[*]} )); then cp "${MODPATHS[@]}" "$BUILDROOT/lib/modules/$KERNELVERSION/kernel" + # unzip modules prior to recompression + gzip -dr "$BUILDROOT/lib/modules/$KERNELVERSION/kernel" + msg "Generating module dependencies" install -m644 -t "$BUILDROOT/lib/modules/$KERNELVERSION" \ "$BASEDIR/lib/modules/$KERNELVERSION"/modules.{builtin,order} -- cgit v1.2.3-24-g4f1b