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


Groups > linux.debian.kernel > #63256 > unrolled thread

Bug#657707: [initramfs-tools] modules for initrd are not stripped

Started byBen Hutchings <ben@decadent.org.uk>
First post2019-02-05 01:40 +0100
Last post2019-07-24 15:00 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#657707: [initramfs-tools] modules for initrd are not stripped Ben Hutchings <ben@decadent.org.uk> - 2019-02-05 01:40 +0100
    Bug#657707: [initramfs-tools] modules for initrd are not stripped Samuel Thibault <sthibault@debian.org> - 2019-07-24 13:10 +0200
      Bug#657707: [initramfs-tools] modules for initrd are not stripped Samuel Thibault <sthibault@debian.org> - 2019-07-24 15:00 +0200
      Bug#657707: [initramfs-tools] modules for initrd are not stripped Ben Hutchings <ben@decadent.org.uk> - 2019-07-24 15:00 +0200

#63256 — Bug#657707: [initramfs-tools] modules for initrd are not stripped

FromBen Hutchings <ben@decadent.org.uk>
Date2019-02-05 01:40 +0100
SubjectBug#657707: [initramfs-tools] modules for initrd are not stripped
Message-ID<xnWWl-8bO-1@gated-at.bofh.it>

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

On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= <mirq-boogs@rere.qmqm.pl> wrote:
> Package: initramfs-tools
> Version: 0.99
> Severity: normal
> 
> --- Please enter the report below this line. ---
> 
> Please add an option (possibly defaulted to on) to strip kernel modules and 
> binaries put in initrd. When using kernel with debugging enables the 
> unstripped modules are available in /lib/modules. Unneeded copy of the symbols 
> in initrd image take over 80% of its size.
[...]

We must not do this by default because stripping will destroy module
signatures.  I'm open to adding an option but won't work on it myself.

Ben.

-- 
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.



[toc] | [next] | [standalone]


#64528

FromSamuel Thibault <sthibault@debian.org>
Date2019-07-24 13:10 +0200
Message-ID<ynnjH-1e8-1@gated-at.bofh.it>
In reply to#63256
I'm also hitting disk contraints with almost-100M initrds.

Ben Hutchings, le mar. 05 févr. 2019 01:00:31 +0100, a ecrit:
> On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= <mirq-boogs@rere.qmqm.pl> wrote:
> > Please add an option (possibly defaulted to on) to strip kernel modules and 
> > binaries put in initrd. When using kernel with debugging enables the 
> > unstripped modules are available in /lib/modules. Unneeded copy of the symbols 
> > in initrd image take over 80% of its size.
> [...]

FTR, plain strip shouldn't be used as such,

strip --strip-unneeded

is needed instead, to avoid breaking loading the modules.

Samuel

[toc] | [prev] | [next] | [standalone]


#64529

FromSamuel Thibault <sthibault@debian.org>
Date2019-07-24 15:00 +0200
Message-ID<ynp29-23i-1@gated-at.bofh.it>
In reply to#64528
Ben Hutchings, le mer. 24 juil. 2019 13:48:00 +0100, a ecrit:
> On Wed, 2019-07-24 at 13:06 +0200, Samuel Thibault wrote:
> > I'm also hitting disk contraints with almost-100M initrds.
> > 
> > Ben Hutchings, le mar. 05 févr. 2019 01:00:31 +0100, a ecrit:
> > > On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= <mirq-boogs@rere.qmqm.pl> wrote:
> > > > Please add an option (possibly defaulted to on) to strip kernel modules and 
> > > > binaries put in initrd. When using kernel with debugging enables the 
> > > > unstripped modules are available in /lib/modules. Unneeded copy of the symbols 
> > > > in initrd image take over 80% of its size.
> > > [...]
> > 
> > FTR, plain strip shouldn't be used as such,
> > 
> > strip --strip-unneeded
> > 
> > is needed instead, to avoid breaking loading the modules.
> 
> strip breaks module signatures.

Sure, I didn't mean it wouldn't.

I just mean that even for people who don't care about signatures, strip
shouldn't be used alone, since it'll even break loading the module.

Samuel

[toc] | [prev] | [next] | [standalone]


#64530

FromBen Hutchings <ben@decadent.org.uk>
Date2019-07-24 15:00 +0200
Message-ID<ynp29-23i-3@gated-at.bofh.it>
In reply to#64528

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

On Wed, 2019-07-24 at 13:06 +0200, Samuel Thibault wrote:
> I'm also hitting disk contraints with almost-100M initrds.
> 
> Ben Hutchings, le mar. 05 févr. 2019 01:00:31 +0100, a ecrit:
> > On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= <mirq-boogs@rere.qmqm.pl> wrote:
> > > Please add an option (possibly defaulted to on) to strip kernel modules and 
> > > binaries put in initrd. When using kernel with debugging enables the 
> > > unstripped modules are available in /lib/modules. Unneeded copy of the symbols 
> > > in initrd image take over 80% of its size.
> > [...]
> 
> FTR, plain strip shouldn't be used as such,
> 
> strip --strip-unneeded
> 
> is needed instead, to avoid breaking loading the modules.

strip breaks module signatures.

Ben.

-- 
Ben Hutchings
compatible: Gracefully accepts erroneous data from any source


[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web