Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Ben Hutchings Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#1032610: reliably composable initramfs - zero-pad output to allow concatenation Date: Mon, 17 Nov 2025 00:30:01 +0100 Message-ID: References: X-Original-To: Birgit Edel X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 16 23:21:07 2025 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -2.599 Reply-To: Ben Hutchings , 1032610@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-kernel@lists.debian.org X-Debian-Pr-Message: followup 1032610 X-Debian-Pr-Package: initramfs-tools-core X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: initramfs-tools Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-EAIO4YeE1EEuysZchX0p" User-Agent: Evolution 3.56.2-7 MIME-Version: 1.0 X-Sa-Exim-Connect-IP: 2a02:578:851f:1502:391e:c5f5:10e2:b9a3 X-Sa-Exim-Mail-From: ben@decadent.org.uk X-Sa-Exim-Scanned: No (on maynard); SAEximRunCond expanded to false X-Debian-Message: from BTS X-Mailing-List: archive/latest/1937091 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 68 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 1032610@bugs.debian.org X-Original-Date: Mon, 17 Nov 2025 00:20:22 +0100 X-Original-Message-ID: <26402a1ef0129eeaee126327d38a58c85f49bd9e.camel@decadent.org.uk> X-Original-References: <3d5952d27c04fe656683ea93a18d911d@posteo.de> <3d5952d27c04fe656683ea93a18d911d@posteo.de> Xref: csiph.com linux.debian.bugs.dist:1270456 linux.debian.kernel:90090 --=-EAIO4YeE1EEuysZchX0p Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Control: tag -1 - patch On Fri, 10 Mar 2023 01:54:47 +0000 Birgit Edel wrote= : > Package: initramfs-tools-core > Version: 0.140 > Severity: wishlist > File: /usr/sbin/mkinitramfs > Tags: patch >=20 > mkinitramfs supports compression that neither encodes size, nor is=20 > guaranteed to signal the end of compressed archive. Linux refuses to=20 > parse additional archives beyond the first compressed one - unless they= =20 > start at 4-byte boundary like uncompressed ones do. >=20 > I request > A) to modify mkninitramfs to append such padding and > B) to add tests to ensure concatenation keeps working (even after, say,= =20 > compression algo/lvl changes) [...] Currently unmkinitramfs is not able to unpack an initramfs image that has multiple compressed parts. Since you want mkinitramfs to support this option, I would expect to see a patch that also makes unmkinitramfs support it. (There is an open merge request to make unmkinitramfs use 3cpio where available: = . I haven't tested whether 3cpio supports multiple compressed parts; if it does then only the tests need to be updated to cover this case.) Ben. --=20 Ben Hutchings Beware of programmers who carry screwdrivers. - Leonard Brandwein --=-EAIO4YeE1EEuysZchX0p Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmkaXDYACgkQ57/I7JWG EQmlqw/6AjhOPcbzzQIUOf9+mLjvqDnEYqNVAVv7gGTF1jJb5KJ1nkTGmDRnbNmB TowPTUPwqtLribhwpGDumX95UuLSIVLtOt9shzPcvnAmr9btxBm97PXKFXwo1ZIl ctdj96oSEwk090vtMZcvSNxX9zeya81XPXPXEObKrqRhhTBC66QBbwcFLSYbjlL4 QnO5Z0QcSbdsoB4doOR0dFrBU60zVqryn50S9N36rj9CfgOtBvfA15edFU5bJvYB bc4S8DDR9fe5bhx+WPVCARZ9i5qFDGU38Qkn1orqErX8u3ZIGA1u5FrSz0PJSPZu dyjrD4HJGY6QR9e1ZgQ0ddnGWuJsFuHNxdccrp6hkk68Y8LBqAgNAqmFha084rxI sNYnw1cbgzcIuAOph9aIH/X2QD2tJ90gWrHuwMNhkM0P86sRZeKxCthpyFRx1i02 pUJUfEY2cZPsuBm0tC/hHDKvYv3W6+n7ene5f2UuRjGHHi+SJ1sB/GUlb+Z26KbO caMqRRq7aqlmP2FUHKCckEHcpviHVIN7ar4ai16aAWAftganlc0e+45XEGbA6DVA nBmxMpULah3uNx1M+1cH9GJxTcPRY4B/1z5H5jWAfFvMAiJP6fcetBzVUtX1DsvS mbc6nmdyyMV7bcfY5DIb5eGC2NlvB+apKz99T69saHUOdKom/2k= =A7LP -----END PGP SIGNATURE----- --=-EAIO4YeE1EEuysZchX0p--