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


Groups > linux.debian.bugs.dist > #699629

Bug#790095: lsinitramfs(8): multiple-segmented initramfs supported

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#790095: lsinitramfs(8): multiple-segmented initramfs supported
Date 2015-12-09 04:30 +0100
Message-ID <qDDC1-2Px-1@gated-at.bofh.it> (permalink)
References <pFLHk-5xo-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tag -1 pending

On Sat, 27 Jun 2015 08:53:59 +0900 Osamu Aoki <osamu@debian.org> wrote:
> Package: initramfs-tools
> Version: 0.120
> Severity: normal
> Tags: patch
> 
> From initramfs-tools 0.118 (Oct. 2014):
>   * [d5f4cd6] lsinitramfs: Parse and list files that include early microcode.
>     Thanks to Brett Parker and Olivier Berger. (Closes: #717805)
> 
> So the manpage description as the following is incorrect.
> | BUGS
> |        lsinitramfs  cannot deal with multiple-segmented initramfs images, such
> |        as those created when an early  (uncompressed)  initramfs  with  system
> |        firmware is prepended to the regular compressed initrams, or when over$B!>(B
> |        lay data is appended to the initramfs.
> 
> So please knock off these lines.
[...]

The last bit is still true - we only support a single uncompressed
segment followed by a single compressed segment.  I don't know how to
support multiple compressed segments, as in general we can't find out
how long each segment is.  (But I think dracut does it, so maybe we
could copy from them.)

So I've applied this change:

--- a/lsinitramfs.8
+++ b/lsinitramfs.8
@@ -38,10 +38,9 @@ List content of two initramfs files in verbose mode:
 
 .SH BUGS
 .BR lsinitramfs
-cannot deal with multiple-segmented initramfs images, such as those created
-when an early (uncompressed) initramfs with system firmware is prepended to
-the regular compressed initrams, or when overlay data is appended to the
-initramfs.
+cannot deal with multiple-segmented initramfs images, except where an
+early (uncompressed) initramfs with system firmware is prepended to
+the regular compressed initramfs.
 
 .SH AUTHOR
 The initramfs-tools are written by Maximilian Attems <maks@debian.org>
--- END ---

Ben.

-- 
Ben Hutchings
I'm always amazed by the number of people who take up solipsism because
they heard someone else explain it. - E*Borg on alt.fan.pratchett

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#790095: lsinitramfs(8): multiple-segmented initramfs supported Ben Hutchings <ben@decadent.org.uk> - 2015-12-09 04:30 +0100

csiph-web