public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Re: Removing unused binaries from ISAR final .wic .image
@ 2022-09-22  6:59 Balasubramanian Sundaram
  2022-09-22  8:36 ` Moessbauer, Felix
  0 siblings, 1 reply; 2+ messages in thread
From: Balasubramanian Sundaram @ 2022-09-22  6:59 UTC (permalink / raw)
  To: isar-users


[-- Attachment #1.1: Type: text/plain, Size: 475 bytes --]

Hi  Team,

we are use ISAR build system for imx6 NXP Based Processor, In which we need 
to remove unused binaries to reduce the rootfs size (optimisation),
we need to remove binaries like 

*libx11-6*

*shared-mime-info*

*Perl*

*dbus*
*gpg *
can you please help in which file inside ISAR build system we need to to do 
modification to remove these binaries in the final .wic.image
and also provide the procedure steps to remove it in the final .wic.image

Thanks & Regards

[-- Attachment #1.2: Type: text/html, Size: 667 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Removing unused binaries from ISAR final .wic .image
  2022-09-22  6:59 Removing unused binaries from ISAR final .wic .image Balasubramanian Sundaram
@ 2022-09-22  8:36 ` Moessbauer, Felix
  0 siblings, 0 replies; 2+ messages in thread
From: Moessbauer, Felix @ 2022-09-22  8:36 UTC (permalink / raw)
  To: Balasubramanian Sundaram; +Cc: isar-users

> From: 'Balasubramanian Sundaram' via isar-users <isar-users@googlegroups.com> 
> Sent: Thursday, September 22, 2022 8:59 AM
> To: isar-users <isar-users@googlegroups.com>
> Subject: Re: Removing unused binaries from ISAR final .wic .image
> 
> Hi  Team,
> 
> we are use ISAR build system for imx6 NXP Based Processor, In which we need to remove unused binaries to reduce the rootfs size (optimisation),
> we need to remove binaries like 
> libx11-6
> shared-mime-info
> Perl
> dbus
> gpg 
> can you please help in which file inside ISAR build system we need to to do modification to remove these binaries in the final .wic.image
> and also provide the procedure steps to remove it in the final .wic.image

Hi,

Some of the are probably transitive dependencies of your own packages (or packages you install).
For example, dbus, libx11-6 and shared-mime-info are not essential packages.
To analyze this, I recommend to use "apt rdepends", e.g. via "apt rdepends libx11-6".

For essential packages, you can manually uninstall them by adding a custom bitbake task to ROOTFS_POSTPROCESS_COMMAND.
There you can chroot into the buildchroot and issue something like "apt remove -y --allow-remove-essential <package>".
Using that pattern, you could even remove apt as a last step.

For details, have a look in the rootfs.bbclass [1].

BTW: These packages technically removed from the rootfs which is an input to wic to generate the final (bootable) image.

[1] https://github.com/ilbers/isar/blob/master/meta/classes/rootfs.bbclass#L232

Best regards,
Felix

> 
> Thanks & Regards


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-22  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22  6:59 Removing unused binaries from ISAR final .wic .image Balasubramanian Sundaram
2022-09-22  8:36 ` Moessbauer, Felix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox