public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: Andreas Naumann <anaumann@emlix.com>, isar-users@googlegroups.com
Subject: Re: [RFC PATCH] meta/classes: Add strip-image
Date: Fri, 5 Sep 2025 10:43:26 +0200	[thread overview]
Message-ID: <afb4f33e-4054-4b64-913f-9f5839e3a83a@siemens.com> (raw)
In-Reply-To: <89e1fec9-810a-4c1f-8c2b-e637a96157bb@emlix.com>

On 05.09.25 09:30, Andreas Naumann wrote:
> Hi,
> 
> Am 04.09.25 um 11:43 schrieb 'Quirin Gylstorff' via isar-users:
>>
>>
>> On 9/4/25 10:37, Jan Kiszka wrote:
>>> On 03.09.25 19:13, Quirin Gylstorff wrote:
>>>>
>>>>
>>>> On 9/3/25 18:19, Jan Kiszka wrote:
>>>>> On 03.09.25 17:20, 'Quirin Gylstorff' via isar-users wrote:
>>>>>> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>>>>>
>>>>>> This class provides the optional functionality to strip packages
>>>>>> and files from a image. This allows the user to reduce the image
>>>>>> size.
>>>>>>
>>>>>> IMPORTANT: This is an expert feature and can lead to broken images.
>>>>>> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>>>>> ---
>>>>>>
>>>>>> The default settings will reduce the space around 40MB. It is
>>>>>> currently
>>>>>> a RFC to collect information about the usage.
>>>>>>
>>>>>> Should we integrate by default or should the user add this on demand?
>>>>>> For a default integration I would drop the deletion:
>>>>>>    - /vmlinuz*
>>>>>>    - /boot
>>>>>>    - /usr/include
>>>>>>    - initramfs-tools
>>>>>>
>>>>>
>>>>> The approach isar-exclude-docs takes for docs cannot be used here? And
>>>>> we want that approach to stay for cleaning docs? Or what is the
>>>>> relation
>>>>> between the two?
>>>>
>>>> We can use isar-exclude-docs or the use the same implementation. I
>>>> didn't use it as it only removes around 3M  from /usr/share/docs in my
>>>> tests from against an unmodified target.
>>>>
>>>> The second part is that isar-exclude-docs is executed during the
>>>> pacakge
>>>> installation.
>>>> Which makes it impossible to remove other files(e.g. /usr/bin/apt-*).
>>>>
>>>
>>> Would be great if we could have only one mechanism in the end that is
>>> powerful enough to express all removal scenarios.
>>
>> That would be more possible with the proposed strip-image class as it
>> works on post rootfs installation. I could extend the class for the
>> copyrights case of isar-exclude-docs in a v2.
> 
> I can image this being a more logical flow than adding packages to
> remove things, which feels a bit counter-intuitive to me.
> 
> However, I had a quick look and there's already a few removal functions
> in the rootfs.class itself. I guess this is where default removals go?
> 
> Coming from Embedded, I'm used to rootfs by default having no doc, man-
> pages, headers and so on. But maybe Isar has a different policy? Is it
> stated somewhere?

Isar is first of all installing real Debian systems, mostly from
original Debian packages. That is primarily happening for embedded
scenarios, but you can also use isar to define desktop images that will
later on be configured and updated by an administrator, the classic way.
So, removing things for embedded, locked-down images should be some
opt-in feature that you can request in your image recipe.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/afb4f33e-4054-4b64-913f-9f5839e3a83a%40siemens.com.

      reply	other threads:[~2025-09-05  8:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-03 15:20 'Quirin Gylstorff' via isar-users
2025-09-03 16:19 ` 'Jan Kiszka' via isar-users
2025-09-03 17:13   ` 'Quirin Gylstorff' via isar-users
2025-09-04  8:37     ` 'Jan Kiszka' via isar-users
2025-09-04  9:43       ` 'Quirin Gylstorff' via isar-users
2025-09-05  7:30         ` Andreas Naumann
2025-09-05  8:43           ` 'Jan Kiszka' via isar-users [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=afb4f33e-4054-4b64-913f-9f5839e3a83a@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=anaumann@emlix.com \
    --cc=jan.kiszka@siemens.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