From patchwork Sat Feb 15 23:14:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel M. Weeks" X-Patchwork-Id: 3657221 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 527C2BF13A for ; Sat, 15 Feb 2014 23:15:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 849FB201DE for ; Sat, 15 Feb 2014 23:15:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 034BF201D3 for ; Sat, 15 Feb 2014 23:15:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751934AbaBOXPK (ORCPT ); Sat, 15 Feb 2014 18:15:10 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:40460 "EHLO cdptpa-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719AbaBOXPJ (ORCPT ); Sat, 15 Feb 2014 18:15:09 -0500 X-Authority-Analysis: v=2.0 cv=H69ZMpki c=1 sm=0 a=2fUkqGT2UzHXw691IaMUVw==:17 a=wom5GMh1gUkA:10 a=JU4hbWwUC5wA:10 a=zz6odIEfzeQA:10 a=hvm3MZhftXEA:10 a=kj9zAlcOel0A:10 a=7kYe3NcsAAAA:8 a=KGjhK52YXX0A:10 a=Sd6W3NyGy_IA:10 a=Z-SZ1Z_njRioQy8wcT0A:9 a=CjuIK1q_8ugA:10 a=-XA83Ip703gA:10 a=2fUkqGT2UzHXw691IaMUVw==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 67.246.46.80 Received: from [67.246.46.80] ([67.246.46.80:53717] helo=opius.danweeks.net) by cdptpa-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id D7/9F-11872-AF4FFF25; Sat, 15 Feb 2014 23:15:07 +0000 Received: from dev.danweeks.net (dev.danweeks.net [10.4.0.91]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by opius.danweeks.net (Postfix) with ESMTPSA id 2E3B430061; Sat, 15 Feb 2014 18:15:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=danweeks.net; s=opius.danweeks.net; t=1392506106; bh=em9eL9+Rwst4tdsRWw6Gdo29m/hMAtWzboUqEP6Sa28=; h=Date:From:To:Cc:Subject; b=egW+OV+X5YETW68xs0rkKPN9fchKfCFafnTB2d1SXvtHPSeq/48FO5RTumUz66Blx m7f014RGf8XUp40f8Gv5OFzWOICXn++oQUiPcHGAKEi+Sc5S9SJvXbV8mB0Q4qSMdn A3R5ZbTgzbZQ65wCTJLkIzUDWLKSQskC0DGG9j/o= Date: Sat, 15 Feb 2014 18:14:57 -0500 From: "Daniel M. Weeks" To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Fix flags for initramfs LZ4 compression Message-ID: <20140215231447.GA30803@dev.danweeks.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Kyungsik Lee --- scripts/gen_initramfs_list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index ef47409..17fa901 100644 --- a/scripts/gen_initramfs_list.sh +++ b/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 ;;