Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #90102

Bug#1032610: reliably composable initramfs - zero-pad output to allow concatenation

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Birgit Edel <edelbitter@posteo.de>
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 14:20:02 +0100
Message-ID <LS7jc-dDNX-25@gated-at.bofh.it> (permalink)
References <G7Ad3-bnVa-3@gated-at.bofh.it> <LRUlX-dvbI-11@gated-at.bofh.it> <G7Ad3-bnVa-3@gated-at.bofh.it> <LRUlX-dvbI-11@gated-at.bofh.it>
X-Original-To Ben Hutchings <ben@decadent.org.uk>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Nov 17 13:15:39 2025
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -2.399
Reply-To Birgit Edel <edelbitter@posteo.de>, 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-Source initramfs-tools
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding 7bit
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1937145
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 21
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 12:25:55 +0000
X-Original-Message-ID <944d54e77d75c63be5f3e88dfa5f65cb@posteo.de>
X-Original-References <3d5952d27c04fe656683ea93a18d911d@posteo.de> <26402a1ef0129eeaee126327d38a58c85f49bd9e.camel@decadent.org.uk> <3d5952d27c04fe656683ea93a18d911d@posteo.de> <26402a1ef0129eeaee126327d38a58c85f49bd9e.camel@decadent.org.uk>
Xref csiph.com linux.debian.bugs.dist:1270503 linux.debian.kernel:90102

Cross-posted to 2 groups.

Show key headers only | View raw


> you want mkinitramfs to support multiple compressed parts

I would caution against that and rather only add the quick and easy bit:

1) Fixing the regression and adding autopkgtest is adds little code yet
solves the hassle for any *manual* workflow that once worked.

2) Actually parsing such archives is way more complicated - and for 
what? Unless
unmkinitramfs was aiming for perfect bug-compatibility with kernel code 
it would
always harbor potential for dangerously misleading output.

> whether 3cpio supports multiple compressed parts

No. Looks like it shuts down even if current decompression stopped short 
of EOF:
https://github.com/bdrung/3cpio/blob/2ffd9dc9ce46f5d885fb066eef73b127889918e2/src/examine.rs#L85
https://github.com/bdrung/3cpio/blob/2ffd9dc9ce46f5d885fb066eef73b127889918e2/src/extract.rs#L181
(Still good, insofar it means my suggested unconditional padding does 
not make it crash.)

Back to linux.debian.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#1032610: reliably composable initramfs - zero-pad output to allow concatenation Ben Hutchings <ben@decadent.org.uk> - 2025-11-17 00:30 +0100
  Bug#1032610: reliably composable initramfs - zero-pad output to allow concatenation Birgit Edel <edelbitter@posteo.de> - 2025-11-17 14:20 +0100

csiph-web