+ scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: + scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression.patch added to -mm tree
To: dan@xxxxxxxxxxxx,kyungsik.lee@xxxxxxx,mmarek@xxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Tue, 18 Feb 2014 16:20:45 -0800


The patch titled
     Subject: scripts/gen_initramfs_list.sh: fix flags for initramfs LZ4 compression
has been added to the -mm tree.  Its filename is
     scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: "Daniel M. Weeks" <dan@xxxxxxxxxxxx>
Subject: scripts/gen_initramfs_list.sh: fix flags for initramfs LZ4 compression

LZ4 as implemented in the kernel differs from the default method now used
by the reference implementation of LZ4.  Until the in-kernel method is
updated to support the new default, passing the legacy flag (-l) to the
compressor is necessary.  Without this flag the kernel-generated,
LZ4-compressed initramfs is junk.

Signed-off-by: Daniel M. Weeks <dan@xxxxxxxxxxxx>
Cc: Michal Marek <mmarek@xxxxxxx>
Cc: Kyungsik Lee <kyungsik.lee@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 scripts/gen_initramfs_list.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN scripts/gen_initramfs_list.sh~scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression scripts/gen_initramfs_list.sh
--- a/scripts/gen_initramfs_list.sh~scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression
+++ a/scripts/gen_initramfs_list.sh
@@ -257,7 +257,7 @@ case "$arg" in
                 && compr="lzop -9 -f"
 		echo "$output_file" | grep -q "\.lz4$" \
                 && [ -x "`which lz4 2> /dev/null`" ] \
-                && compr="lz4 -9 -f"
+                && compr="lz4 -l -9 -f"
 		echo "$output_file" | grep -q "\.cpio$" && compr="cat"
 		shift
 		;;
_

Patches currently in -mm which might be from dan@xxxxxxxxxxxx are

scripts-gen_initramfs_listsh-fix-flags-for-initramfs-lz4-compression.patch
initramfs-debug-detected-compression-method.patch
initramfs-debug-detected-compression-method-fix.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux