Path: csiph.com!news.mixmin.net!news.unit0.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: "Debian Bug Tracking System" Newsgroups: linux.debian.kernel Subject: Bug#930366: marked as done (initramfs-tools: unmkinitramfs fails to unpack lz4 compressed initrd) Date: Sun, 28 Jul 2019 03:00:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-kernel-request@lists.debian.org Sun Jul 28 00:54:34 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-10.76 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, FVGT_m_MULTI_ODD=0.02, GMAIL=1, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3, YOURMESSAGEBOD=2.5] autolearn=ham autolearn_force=no MIME-Version: 1.0 X-Mailer: MIME-tools 5.508 (Entity 5.508) X-Debian-Pr-Message: closed 930366 X-Debian-Pr-Package: initramfs-tools X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: initramfs-tools Reply-To: 930366@bugs.debian.org Content-Type: multipart/mixed; boundary="----------=_1564275253-27221-0" X-Mailing-List: archive/latest/121164 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/handler.930366.D930366.156427505325799.ackdone@bugs.debian.org Approved: robomod@news.nic.it Lines: 307 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 28 Jul 2019 00:54:13 +0000 X-Original-Message-ID: X-Original-References: <156026211396.12731.11354227687400418381.reportbug@ottawa.168.1.5> Xref: csiph.com linux.debian.kernel:64569 This is a multi-part message in MIME format... ------------=_1564275253-27221-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Sun, 28 Jul 2019 00:50:51 +0000 with message-id and subject line Bug#930366: fixed in initramfs-tools 0.134 has caused the Debian Bug report #930366, regarding initramfs-tools: unmkinitramfs fails to unpack lz4 compressed ini= trd to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) --=20 930366: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D930366 Debian Bug Tracking System Contact owner@bugs.debian.org with problems ------------=_1564275253-27221-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.debian.org; 11 Jun 2019 14:08:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02 (2018-09-13) on buxtehude.debian.org X-Spam-Level: X-Spam-Status: No, score=-17.9 required=4.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HAS_PACKAGE,HEADER_FROM_DIFFERENT_DOMAINS, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP, XMAILER_REPORTBUG autolearn=ham autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 17; hammy, 150; neutral, 45; spammy, 0. spammytokens: hammytokens:0.000-+--H*F:D*ubuntu.com, 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug Return-path: Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hahS2-0002ij-VN for submit@bugs.debian.org; Tue, 11 Jun 2019 14:08:39 +0000 Received: by mail-wr1-x42e.google.com with SMTP id v14so13203965wrr.4 for ; Tue, 11 Jun 2019 07:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=surgut.co.uk; s=google; h=sender:mime-version:from:to:subject:message-id:date; bh=oC0M2TAs27SiQr+6DY3nDdBfjqfcErQJ7b/CIVrnsnI=; b=BWdhjT9YkIW1iSYiaarluIoVCQhZ8UAQzDpfscol8DE7d7C1rgIO3nHAVM25Nc2Na2 n7KG5KCMmLWT0is/wV2TxM6d364p22fqM0aBfx8SOuThQhjhiVlAQMXb5mgz7Azg1zs/ U9vA+dIPrZmSzGFGnQX8hJk+giQ45mIbETZbo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:mime-version:from:to:subject:message-id :date; bh=oC0M2TAs27SiQr+6DY3nDdBfjqfcErQJ7b/CIVrnsnI=; b=GazoV0RjO6EoLW6DbAQ2pqYVPIHrOxd2+TjdkXbJHqulGlknZUG0g/I0sa8w3kkCDT ZE643cRHNeOrj/4A3gWqIUhybzQLJU5TaOoA6HXsrTeDOgahCJHNbPWm+tS8CGDPUpVQ BPrdp6Hz/CIa5JWwjkBWLNqqGDSHhlX8Fujiney0evxq8R66pbSg4n1IOe9N3mkLiAMU Q/oh9EQ2C0FRnbo1aGNsEmHGPbfTBfW3Fw7USbTrqxBbHUP16+Dm68Pu+V0h+C8JH0sV e13+MJyTrIqNRnzpMWiI9g+fXy5EhYjfEZqhIY2ATMevCdLjteEjmMdL3GdhweXP808L Tb7w== X-Gm-Message-State: APjAAAUlBQHIrLRTqLWDqQqf5qeHpkksevh3gVySI2xPxgZ+fFIhibtc //d8WKgKv1NgvbCG8GJuc4bStGDO/08vhw== X-Google-Smtp-Source: APXvYqxa6NVKVdgqc7R9RLTGsH39ug5yTUersuEIejRTyGLUvWrY/n5UoFTUCzSihg/Sh9UvZhS4vQ== X-Received: by 2002:a5d:6389:: with SMTP id p9mr36109419wru.297.1560262115455; Tue, 11 Jun 2019 07:08:35 -0700 (PDT) Received: from localhost (9.a.8.f.7.f.e.f.f.f.2.3.f.4.a.1.1.4.e.1.c.6.e.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:de6c:1e41:1a4f:32ff:fef7:f8a9]) by smtp.gmail.com with ESMTPSA id a19sm1797546wmm.46.2019.06.11.07.08.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 07:08:34 -0700 (PDT) Sender: Dimitri John Ledkov Content-Type: multipart/mixed; boundary="===============1107977041841483284==" MIME-Version: 1.0 From: Dimitri John Ledkov To: Debian Bug Tracking System Subject: initramfs-tools: unmkinitramfs fails to unpack lz4 compressed initrd Message-ID: <156026211396.12731.11354227687400418381.reportbug@ottawa.168.1.5> X-Mailer: reportbug 7.5.2ubuntu1 Date: Tue, 11 Jun 2019 15:08:33 +0100 Delivered-To: submit@bugs.debian.org This is a multi-part MIME message sent by reportbug. --===============1107977041841483284== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: initramfs-tools Version: 0.133 Severity: normal Tags: patch Dear Maintainer, unmkinitramfs fails to unpack lz4 compressed initrd, ie.: $ sudo apt install initramfs-tools lz4 file $ mkinitramfs -c lz4 -o foo.img $ unmkinitramfs foo.img bar cpio: premature end of archive $ echo $? 2 I think this is because lz4cat is strict with file extensions: $ file foo.img foo.img: LZ4 compressed data (v0.1-v0.9) $ lz4cat -t foo.img File extension doesn't match expected LZ4_EXTENSION (.lz4); will not process file: foo.img I propose the attached patch to change 'lz4cat -t $archive' invocations to become 'lz4cat -t <$archive' instead. As lz4cat does not / cannot enforce extension checking on streams. Regards, Dimitri. --===============1107977041841483284== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lz4.patch" diff -Nru initramfs-tools-0.133ubuntu6/unmkinitramfs initramfs-tools-0.133ubuntu8/unmkinitramfs --- initramfs-tools-0.133ubuntu6/unmkinitramfs 2019-06-07 19:22:58.000000000 +0000 +++ initramfs-tools-0.133ubuntu8/unmkinitramfs 2019-06-09 23:21:17.000000000 +0000 @@ -33,8 +33,8 @@ gzip -c -d "$archive" elif xzcat -t "$archive" >/dev/null 2>&1 ; then xzcat "$archive" - elif lz4cat -t "$archive" >/dev/null 2>&1 ; then - lz4cat "$archive" + elif lz4cat -t <"$archive" >/dev/null 2>&1 ; then + lz4cat <"$archive" elif bzip2 -t "$archive" >/dev/null 2>&1 ; then bzip2 -c -d "$archive" elif lzop -t "$archive" >/dev/null 2>&1 ; then --===============1107977041841483284==-- ------------=_1564275253-27221-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 930366-close) by bugs.debian.org; 28 Jul 2019 00:50:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02 (2018-09-13) on buxtehude.debian.org X-Spam-Level: X-Spam-Status: No, score=-26.5 required=4.0 tests=BAYES_00,DIGITS_LETTERS, FVGT_m_MULTI_ODD,GMAIL,HAS_BUG_NUMBER,HEADER_FROM_DIFFERENT_DOMAINS, MD5_SHA1_SUM,PGPSIGNATURE,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 9; hammy, 150; neutral, 322; spammy, 0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK, 0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload, 0.000-+--Hx-spam-relays-external:sk:envelop, 0.000-+--H*r:138.16.160 Return-path: Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=muffat.debian.org,EMAIL=hostmaster@muffat.debian.org (verified) by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrXOn-0006hF-EN for 930366-close@bugs.debian.org; Sun, 28 Jul 2019 00:50:53 +0000 Received: from fasolo.debian.org ([138.16.160.17]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified) by muffat.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrXOm-0005YX-NN; Sun, 28 Jul 2019 00:50:52 +0000 Received: from dak by fasolo.debian.org with local (Exim 4.89) (envelope-from ) id 1hrXOl-0009B3-Kz; Sun, 28 Jul 2019 00:50:51 +0000 From: Ben Hutchings To: 930366-close@bugs.debian.org X-DAK: dak process-upload X-Debian: DAK X-Debian-Package: initramfs-tools MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Bug#930366: fixed in initramfs-tools 0.134 Message-Id: Date: Sun, 28 Jul 2019 00:50:51 +0000 X-CrossAssassin-Score: 5 Source: initramfs-tools Source-Version: 0.134 We believe that the bug you reported is fixed in the latest version of initramfs-tools, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 930366@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ben Hutchings (supplier of updated initramfs-tools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sun, 28 Jul 2019 01:10:56 +0100 Source: initramfs-tools Architecture: source Version: 0.134 Distribution: unstable Urgency: medium Maintainer: Debian kernel team Changed-By: Ben Hutchings Closes: 916696 923165 928689 928736 930366 930754 932854 Changes: initramfs-tools (0.134) unstable; urgency=medium . [ Ben Hutchings ] * [8aeae9f] hooks/resume: Disable resume when there are no suitable swap devices. Thanks to Trek (Closes: #916696) * [40f6647] hook-functions: Include all keyboard driver modules when MODULES=most. Thanks to Alper Nebi Yasak * [797e5fe] hook-functions: Include cros_ec_spi and SPI drivers when MODULES=most. Thanks to Alper Nebi Yasak * [f65627d] resume: Set plymouth status only if there is a suspend image (Closes: #928736) * [c31a908] hook-functions: Fix copy_file with target of "/bin" (Closes: #928689) * [8a29ef3] scripts/functions: Use "reboot -f" to reboot on panic. Thanks to Michael Niewöhner (Closes: #923165) * [da9f53e] unmkinitramfs: Work around lz4cat filename check. Thanks to Dimitri John Ledkov (Closes: #930366) * [cf7bb4b] initramfs-tools-core: Depend on logsave or older e2fsprogs (Closes: #932854) * [8570718] update-initramfs(8): Document -d option as "delete" instead of "remove" * [fffe514] update-initramfs(8): Update description of "-k all" option . [ Benjamin Drung ] * [5e94f22] autopkgtest: Check also /usr/share/initramfs-tools/{hooks,scripts} . [ Alper Nebi Yasak ] * [994d698] hook-functions: Include extcon-usbc-cros-ec when MODULES=most * [4e3496a] hook-functions: Include extcon drivers when MODULES=dep . [ Uwe Kleine-König ] * [37dcf3d] mkinitramfs: suppress warning when using bzip2 or lzma (Closes: #930754) Checksums-Sha1: cb626f58f71afe80c05fcab65154d1c556845d86 1821 initramfs-tools_0.134.dsc f8dae02d5ae863b7d57ec07a04d35fc99452680b 90668 initramfs-tools_0.134.tar.xz 84d4af82515c425e2dafc1fcb7f6044518fea7e9 6165 initramfs-tools_0.134_source.buildinfo Checksums-Sha256: 3f0ac785b5807c124ac86fad50364ad84ca0107b33a0d75564bb02b99e181590 1821 initramfs-tools_0.134.dsc 0ea9a39f7951a7766170811f548dbfd95f58e01af5f0c7ada232cd0054b6ac90 90668 initramfs-tools_0.134.tar.xz ae352b23ca48579a4a86e703cfb68531225ed5ebf5b012c195bcaf3eed5a95f9 6165 initramfs-tools_0.134_source.buildinfo Files: 0c35ad5d6dd04b3a7b9064fe32f0716a 1821 utils optional initramfs-tools_0.134.dsc cacea7bff5e01f6ad6c9bd896072858d 90668 utils optional initramfs-tools_0.134.tar.xz 700dd4a43153261b096392f1dd9ba124 6165 utils optional initramfs-tools_0.134_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAl088F4ACgkQ57/I7JWG EQmrmBAAtydoFIMmLGKAv8scUdjXZDy6JR/DpfAgW1mC/CHtSo2b9jtGZ+1tJieb k1oJUKaJru8IEumLyjyQ1wS1On6Ggl/HxGW0dJyrwjtbsWzn6e9OC3VaklTdeN/6 883kVjSTgqRivf12FjMYy7rUga09AZT52SqqsKH6gHrsKcIQ6YChtLo3ONLFTzK+ 17ZxMNNQpYgauUiFWl7npTnhMmf5Y3/GQo+4/m/APUQsqQlAvt8SUF6k7twxQqzT ID4hBmMWH5z9KSiOUfoNLAaQhbk9ABwghqXC7fcfvqN2jesqcAhuSZ4Uw5ZzAHvh kYjl2ke0r94nHNDc2An6dz8u+hgXa/7z+M+ooYABEKOxwgoEf3uN64E7Nx1gknvC hGCb7iNhY8872n+WdtAmilZPoQQ0rMtAGDvHm1Vq1q3tfKjMBBVzXw41vcPODNaS jxIEm1vY1WGu8OiK04YjuZ63QUHi5ll1rgcVVEv81pPSzXdNwbXkFYKaXW7W3DAI f50G3/6PfpSzZ3B+3yKmC4hzyWvKQc3/WLJc6grC2eze3HLjkQaWSv/koSsq1cVR Wb5vkTYQdgWDbhfOcrg0ot6zSjKJ4oeefpJPTFR294ug3SxkmaPrJGSwqs9wqlRq 3qCW1uoSpwDYPjySsB5d5OKDvzeqqFmOCON/I/nfMHlGT6Prc0c= =b+fS -----END PGP SIGNATURE----- ------------=_1564275253-27221-0--