public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: "'Balasubramanian Sundaram' via isar-users"
	<isar-users@googlegroups.com>
Cc: Balasubramanian Sundaram <balasubramanian.sundaram@sanmina.com>
Subject: Re: [RFC 0/2] Remove Packages during Postprocessing
Date: Thu, 22 Sep 2022 11:26:58 +0200	[thread overview]
Message-ID: <20220922112658.2113d2a7@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <e25c7c39-0397-46bc-917f-881882b34220n@googlegroups.com>

Hi Sundaram,

Am Wed, 21 Sep 2022 22:55:07 -0700 (PDT)
schrieb "'Balasubramanian Sundaram' via isar-users"
<isar-users@googlegroups.com>:

> Hi Team,
> 
> Iam using ISAR build system for imx6 nxp based processor, I need to
> remove some user binaries like perl, shared-mime-info,libx11-6,
> can you please provide steps or which file i need to change to remove
> these binaries in the final .wic.image

If the binaries are in the rootfs they are coming in as
runtime dependency of something. Or maybe the packages have been
explicitly installed by accident.

Removing rdeps is risky, you never know what you might break. So you
should think _really_ _really_ carefully about the reasons to remove
things. Question those reasons several times. Weird legal or security
reasons are better resolved in other ways. Even if one "firmware" works
with forcefully removed rdeps, the next version might break in funny
ways ... or you see the breakage in the field, on a code-path never
seen during testing.

If it is about size i would advise to rather choose a board with bigger
mass storage, a product released today where the firmware barely fits
... is not going to live too long and the hacks will get worse over the
years. Maybe try some sort of filesystem compression instead.

So now that we are clear that it would be a really bad idea ...

You best bet might be to give the patches a try. And give feedback on
how well they worked for you ... or not. Should you be using kas, it is
easy to apply patches to isar and describe all that in a kas-file in
your layer.

regards,
Henning

> Thanks & Regards
> 
> On Tuesday, February 25, 2020 at 11:13:57 AM UTC+5:30 Gylstorff
> Quirin wrote:
> 
> >
> >
> > On 2/24/20 3:24 PM, Henning Schild wrote:  
> > > Hi,
> > > 
> > > my opinion on that is clear. Fix it upstream or live with those
> > > packages. You are either on a distro or fiddle around and tune
> > > everything until you are the only one on the planet testing your
> > > setup. That is Isar vs. yocto ... whoever thinks they _need_ that
> > > should maybe think again. If they need it they can put it into
> > > their own layer or use yocto ;).
> > > I do not think upstream should carry such hacky features unless
> > > we get better reasoning ... Removing "required" packages has the
> > > potential to break your image in funny ways ... that is much more
> > > expensive than a few MB disc space. All affected packages are
> > > likely already cleared and vulnerabilty monitored by someone
> > > else, find that someone and share the cost!
> > > 
> > > Henning  
> >
> > Hi Henning,
> >
> > I understand your concern and I think you are right. But some people
> > already hack the build process in similar ways and this is a way to
> > give them some support.
> >
> > I want to collect the option of community regarding this patch.
> >
> > Quirin
> >  
> > > 
> > > On Fri, 21 Feb 2020 15:53:46 +0100
> > > "Q. Gylstorff" <Quirin.G...@siemens.com> wrote:
> > >   
> > >> From: Quirin Gylstorff <quirin.g...@siemens.com>
> > >>
> > >> Some packages even if the are part of minbase are not necessary
> > >> to run a debian system. Debian has some issues and experiments
> > >> to remove packages from minbase [1]. This feature allows a
> > >> expert user to remove packages from the final image during post
> > >> processing.
> > >>
> > >> The reason for this are e.g. disk usage reduction and reduction
> > >> of the clearing effort.
> > >>
> > >> The method to remove packages in postprocessing is a best-effort
> > >> action.
> > >>
> > >> Another way would be to identify like [1] packages in
> > >> minbase which can be removed without compremising the isar rootfs
> > >> creation and remove them directly after or during bootstrapping.
> > >> If a package is used for a production related feature it should
> > >> be reinstalled.
> > >>
> > >>
> > >> [1]: https://wiki.debian.org/BusterPriorityRequalification
> > >>
> > >> Quirin Gylstorff (2):
> > >> meta/classes: Add remove packages to rootfs postprocessing
> > >> meta-isar/images: Remove gcc-8-base from rootfs
> > >>
> > >> meta-isar/recipes-core/images/isar-image-base.bb | 4 ++++
> > >> meta/classes/image.bbclass | 2 +-
> > >> meta/classes/rootfs.bbclass | 13 +++++++++++++
> > >> 3 files changed, 18 insertions(+), 1 deletion(-)
> > >>  
> > >   
> >
> > -- 
> > Quirin Gylstorff
> >
> > Siemens AG
> > Corporate Technology
> > Research in Digitalization and Automation
> > Smart Embedded Systems
> > CT RDA IOT SES-DE
> > Otto-Hahn-Ring 6
> > 81739 Muenchen, Germany
> > Mobile: +49 173 3746683 <+49%20173%203746683>
> > mailto:quirin.g...@siemens.com
> > www.siemens.com/ingenuityforlife
> >
> > Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim 
> > Hagemann Snabe; Managing Board: Joe Kaeser, Chairman, President and 
> > Chief Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, 
> > Cedrik Neike, Michael Sen, Ralf P. Thomas; Registered offices:
> > Berlin and Munich, Germany; Commercial registries: Berlin
> > Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE
> > 23691322
> >
> > Important notice: This e-mail and any attachment thereof contain 
> > corporate proprietary information. If you have received it by
> > mistake, please notify us immediately by reply e-mail and delete
> > this e-mail and its attachments from your system. Thank you.
> >  
> 


      reply	other threads:[~2022-09-22  9:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-21 14:53 Q. Gylstorff
2020-02-21 14:53 ` [RFC 1/2] meta/classes: Add remove packages to rootfs postprocessing Q. Gylstorff
2020-02-21 18:28   ` Jan Kiszka
2020-02-24 13:04     ` Gylstorff Quirin
2020-02-21 14:53 ` [RFC 2/2] meta-isar/images: Remove gcc-8-base from rootfs Q. Gylstorff
2020-02-21 18:29   ` Jan Kiszka
2020-02-24 14:24 ` [RFC 0/2] Remove Packages during Postprocessing Henning Schild
2020-02-25  5:43   ` Gylstorff Quirin
2020-02-25 13:10     ` Henning Schild
2020-03-17 10:23       ` Gylstorff Quirin
2020-03-17 10:28         ` Jan Kiszka
2020-03-17 10:48       ` Gylstorff Quirin
2022-09-22  5:55     ` Balasubramanian Sundaram
2022-09-22  9:26       ` Henning Schild [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220922112658.2113d2a7@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=balasubramanian.sundaram@sanmina.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox