[arch-projects] [mkinitcpio][PATCH 3/3] mkinitcpio: unzip modules before image compression
Dave Reisner
d at falconindy.com
Fri Feb 17 09:20:39 EST 2012
On Fri, Feb 17, 2012 at 09:06:01AM -0500, Dave Reisner wrote:
> From: Tom Gunderson <teg at jklm.no>
>
> 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 <teg at jklm.no>
^ borka, bork bork
> Signed-off-by: Dave Reisner <dreisner at archlinux.org>
> ---
> Resending this as its rebased/rewritten with Tom's name on it.
>
> mkinitcpio | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> 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}
> --
> 1.7.9.1
>
More information about the arch-projects
mailing list