From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 09 Jan 2025 13:41:40 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f56.google.com (mail-qv1-f56.google.com [209.85.219.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 509Cfceo027287 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 9 Jan 2025 13:41:39 +0100 Received: by mail-qv1-f56.google.com with SMTP id 6a1803df08f44-6d87efed6c4sf14338426d6.1 for ; Thu, 09 Jan 2025 04:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1736426493; x=1737031293; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-sender:mime-version :subject:references:in-reply-to:message-id:to:from:date:sender:from :to:cc:subject:date:message-id:reply-to; bh=f/6dK21QnnEJBsQOrs98WIfdUu5PQXLgLjvxb92BJv0=; b=XSpcSS5TlYnhY/LzDI5lpmTSnL2y2DvWVAzIqFt9yWMVgDLecI/h5SNN3PtyWN3EEf UDeXZfAT8suMdlv0y2cwtYmNh887EhpHvWF8Rq/NZtUpstt4yzMoffC0e7/xHGVxWo2t /jRlBVIE1kMjkCZYiuLQP98jBvzaYOlHKVuj9O54Kg5gt+26EA3ff9+dJq+GM83E3xlR 6xQGq31JszwEbUslU6zFEaIAzD+piTO4AN/2a8YRVBleJrYTB8i5zJWQpeyN3NE7n0g6 +MfUNo6tcfl4bgfZw+c0TetUYt5ggrnjdgyFsXX6X0km1GvlHuq1SVNsmwRr2R54b3eN +S6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736426493; x=1737031293; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-sender:mime-version :subject:references:in-reply-to:message-id:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=f/6dK21QnnEJBsQOrs98WIfdUu5PQXLgLjvxb92BJv0=; b=afWvzkfSGmxOikrA7eZ42R2vzIpZNLuXXN5qFCKJ9B/tfmVe4p6l8xezKOLq9xvhRr Chnw1Xwkf3ZcET1Zhlg95SDcQ2kGWTQgOh+eENtkcD8iJIjbduJPtsuuoORtGhsmqoEJ zgDk2DCmXTCXxeApV1qgDjEDx75TwEBzfy1kpY7uKkiekF8FWfrcH8t01C3fDOmbiFAH pNWxjdwb7fae+SpshnJMjrWDjunCg/wltwexVcY8fJRehNM8rLTVOLD5IXt/RDZuCYSh spAlSdJFkAXhpdxzgkx0zWaoit85aXwr0ZRNt1BfTw607Cm0L1gaOsWDzI3lJtOkmu+g GqFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736426493; x=1737031293; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=f/6dK21QnnEJBsQOrs98WIfdUu5PQXLgLjvxb92BJv0=; b=nbh0lXIldbOsBZs8/JJn8iuKy/w8N4OdsdO/EjLOdhxvDTzGf7CGsaqf71W1GUpeC/ 7rHHxVaJCN9pkqbd4QQTUQrZYqiCGC5/mfKoQr7bjmyKzYVnP6LrIW6K5LyswX/BA8X0 t+K1qlbga+TZPvMwwjy8gDcizxNYoP3xbpwLy1sYSIJ+Aq0jV/NRWlz4jr1NnX1/PdkD 7PZ3Y92ooyyv2FLMFxzq4q41QOBbpUNUbGX7t0x3G0LZNyh464nztRATEBv6PKfvG9py U4qwNUAI0L7RD/PJRi2LnyR7YWR36VhM55IP1LRyWVS69JGOFobVOuHIaP1es0zfJJFS zNnQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=1; AJvYcCVAhTUHiL5/NiBpYHkba5k9WMFlXA2hLGMhnSsG+Zf8uNYeHv4c4gCT+tmA7Mauu86dvPX2@ilbers.de X-Gm-Message-State: AOJu0YwrDSNyHW86Q6T78qvKT4aHvHaTulDjPyghFT/5bB7xPkl1b6NB Ey9WnqaNShIhGet/hKljmoE79J9yf3fOibksZs9X8RRzCShdYECU X-Google-Smtp-Source: AGHT+IFdyJEjYdh0hn0jLhPQncu5eaKg7wf4aNIHJ9duSj7Oiy9lTZPYNnSAKUPf7T7CaBkeIWCF2Q== X-Received: by 2002:a05:6214:27c2:b0:6d8:b3a7:75a5 with SMTP id 6a1803df08f44-6df9b2d50d7mr117598216d6.42.1736426492659; Thu, 09 Jan 2025 04:41:32 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6214:5786:b0:6dd:1724:e378 with SMTP id 6a1803df08f44-6dfa3828844ls15480376d6.2.-pod-prod-06-us; Thu, 09 Jan 2025 04:41:32 -0800 (PST) X-Received: by 2002:a05:620a:4056:b0:7b7:106a:19b2 with SMTP id af79cd13be357-7bcd973aa1emr847004485a.23.1736426491770; Thu, 09 Jan 2025 04:41:31 -0800 (PST) Date: Thu, 9 Jan 2025 04:41:31 -0800 (PST) From: Cedric Hombourger To: isar-users Message-Id: <0e5c17be-55f1-4646-b44b-a10ded2b745bn@googlegroups.com> In-Reply-To: <20250109121728.96932-1-srinuvasan.a@siemens.com> References: <20250109121728.96932-1-srinuvasan.a@siemens.com> Subject: Re: [PATCH] isar-mmdebstrap: reduce rootfs size as much as possible MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_38086_1427184175.1736426491424" X-Original-Sender: chombourger@gmail.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: BRI703UgW/dS ------=_Part_38086_1427184175.1736426491424 Content-Type: multipart/alternative; boundary="----=_Part_38087_1456029041.1736426491424" ------=_Part_38087_1456029041.1736426491424 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le jeudi 9 janvier 2025 =C3=A0 13:17:57 UTC+1, srinuv...@siemens.com a =C3= =A9crit : From: srinuvasan =20 reduce the rootfs image size by excluding man and doc, this=20 changes significantly reduce size from (~80MB) to (~64MB).=20 Signed-off-by: srinuvasan =20 ---=20 meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 9 +++++++++=20 1 file changed, 9 insertions(+)=20 diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc=20 b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc=20 index 931f6f13..1e2ad40f 100644=20 --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc=20 +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc=20 @@ -24,6 +24,14 @@ DPKG_HOOKS ?=3D=20 "${@'--hook-dir=3D'+d.getVar('MM_HOOK_JESSIE') \=20 MMHOOKS:focal ?=3D "${DPKG_HOOKS}"=20 MMHOOKS:buster ?=3D "${DPKG_HOOKS}"=20 +CLEANUP_DOCS =3D "--dpkgopt=3D'path-exclude=3D/usr/share/man/*' \=20 + --dpkgopt=3D'path-include=3D/usr/share/man/man[1-9]/*' \=20 + --dpkgopt=3D'path-exclude=3D/usr/share/locale/*' \=20 + --dpkgopt=3D'path-include=3D/usr/share/locale/locale.alias' \=20 + --dpkgopt=3D'path-exclude=3D/usr/share/doc/*' \=20 + --dpkgopt=3D'path-include=3D/usr/share/doc/*/copyright' \=20 + --dpkgopt=3D'path-include=3D/usr/share/doc/*/changelog.Debian.*'"=20 +=20 Not.a good idea IMO - some users may want to build images with man pages /= =20 documentation At best this could be an image extension. It could take informed decisions:= =20 if /usr/bin/man isn=E2=80=99t there then remove man pages. Users should be = able to=20 enable/disable that customisation DISTRO_BOOTSTRAP_KEYRING =3D "${WORKDIR}/distro-keyring.gpg"=20 def get_distro_have_https_source(d):=20 @@ -199,6 +207,7 @@ do_bootstrap() {=20 --customize-hook=3D'sed -i "/en_US.UTF-8 UTF-8/s/^#//g" "$1/etc/locale.gen"= '=20 \=20 --customize-hook=3D'chroot "$1" /usr/sbin/locale-gen' \=20 --customize-hook=3D'chroot "$1" /usr/bin/apt-get -y clean' \=20 + ${CLEANUP_DOCS} \=20 --skip=3Dcleanup/apt \=20 --skip=3Ddownload/empty \=20 ${@get_apt_opts(d, '--aptopt')} \=20 --=20 2.39.5=20 --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 0e5c17be-55f1-4646-b44b-a10ded2b745bn%40googlegroups.com. ------=_Part_38087_1456029041.1736426491424 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Le jeudi 9 janvier 2025 =C3=A0 13:17:57 = UTC+1, srinuv...@siemens.com a =C3=A9crit=C2=A0:
From: sr= inuvasan <srinuv...@siemens.com>

reduce the rootfs image size by excluding man and doc, this
changes significantly reduce size from (~80MB) to (~64MB).

Signed-off-by: srinuvasan <srinuv...= @siemens.com>
---
meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/= meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
index 931f6f13..1e2ad40f 100644
--- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
+++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
@@ -24,6 +24,14 @@ DPKG_HOOKS ?=3D "${@'--hook-dir=3D'+d.getVar('MM_H= OOK_JESSIE') \
MMHOOKS:focal ?=3D "${DPKG_HOOKS}"
MMHOOKS:buster ?=3D "${DPKG_HOOKS}"
=20
+CLEANUP_DOCS =3D "--dpkgopt=3D'path-exclude=3D/usr/share/man/*' \
+ --dpkgopt=3D'path-include=3D/usr/share/man/man[1-9]/= *' \
+ --dpkgopt=3D'path-exclude=3D/usr/share/locale/*' \
+ --dpkgopt=3D'path-include=3D/usr/share/locale/locale= .alias' \
+ --dpkgopt=3D'path-exclude=3D/usr/share/doc/*' \
+ --dpkgopt=3D'path-include=3D/usr/share/doc/*/copyrig= ht' \
+ --dpkgopt=3D'path-include=3D/usr/share/doc/*/changel= og.Debian.*'"
+

Not.a good idea IMO - some users m= ay want to build images with man pages / documentation
At best th= is could be an image extension. It could take informed decisions: if /usr/b= in/man isn=E2=80=99t there then remove man pages. Users should be able to e= nable/disable that customisation

DISTRO_BOOTS= TRAP_KEYRING =3D "${WORKDIR}/distro-keyring.gpg"
=20
def get_distro_have_https_source(d):
@@ -199,6 +207,7 @@ do_bootstrap() {
--customize-hook=3D'sed -i "/en_US.UTF-8 UTF-8/s/= ^#//g" "$1/etc/locale.gen"' \
--customize-hook=3D'chroot "$1" /usr/sbin/locale-= gen' \
--customize-hook=3D'chroot "$1" /usr/bin/apt-get = -y clean' \
+ ${CLEANUP_DOCS} \
--skip=3Dcleanup/apt \
--skip=3Ddownload/empty \
${@get_apt_opts(d, '--aptopt')} \
--=20
2.39.5

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-use= rs/0e5c17be-55f1-4646-b44b-a10ded2b745bn%40googlegroups.com.
------=_Part_38087_1456029041.1736426491424-- ------=_Part_38086_1427184175.1736426491424--