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 14:16:16 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qk1-f190.google.com (mail-qk1-f190.google.com [209.85.222.190]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 509DGEMe027541 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 9 Jan 2025 14:16:15 +0100 Received: by mail-qk1-f190.google.com with SMTP id af79cd13be357-7bcdb02f43csf99816385a.3 for ; Thu, 09 Jan 2025 05:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1736428568; x=1737033368; 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=X5tDX/Z2YwYpOG1nPusmFIrTpvtjo9wmOPuCnaq46mQ=; b=aj8UHrdk0SXMgzs6uZtWIMkNyryuV4/LPrFcl1Tr5/rGFJ/7+UnTxmtVaIjcyFkTF7 lqxmHzQ5RSMA225Bz/qTeZeq9R1aeH2L24EkY0RIZv3t4Ah9DfP0Xcc4Zt6e4jYyypXc FsfxHzKLQ++e9Yc4sYkxIoWoGrT5xDEFuTLTE7m8TUfap5d9frB4cJnfbQl20HQor+2V 2X19mCurKqDe+IN2lTD+3J2B2HQg5q13GjORfx85UREXMPyUnXhTQud5e0clUJxgxAoB NVpM1U8t8UweN2JfiQDcNrHkOonKfm2mVDrnxmHGu0T/nmdtSmRt/hm2tRG8sErxE7J3 Vvgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736428568; x=1737033368; 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=X5tDX/Z2YwYpOG1nPusmFIrTpvtjo9wmOPuCnaq46mQ=; b=MD5WWDpOMBDq6Qreu3Vom0LltWOJ6uyhKtds/23RFbBR+MHiYtA/DOCOi0mj0cf07T DNAlipTEFCs+vc7lP7TP4wSt6kfZbnIfI8eD2F20ZDI4IXx2CiEwlU5aarX3U5GT/Tzl aibkjKL1ZcUPzUz9f+TgDC/ESLR6a5GM0kR3w/rCnL4eJ0aZwLymJQEBKYl695a9ps85 ZRyJiBMc7fMFj9OhvJJepsvHNwX/fYH4LrqtipR4WsSQc1LbEPgaK4IoD5a/wvdleUch FF2PHAq4827d2D16Jwlu9gssAxsntE4tskJVTzWq8RP72Q9P8vQqEJt1KqjmCFusjNDK wHfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736428568; x=1737033368; 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=X5tDX/Z2YwYpOG1nPusmFIrTpvtjo9wmOPuCnaq46mQ=; b=dlTQz8m0PQlyMKqNrwo02G+ezE9QdfnfvBaRLqnXGD4xdGRfVWjgDY2PWHSBQ8bIYz acGfDRYZSSl1WF/4lb6DQmaNluyXGyXsj5yUtaj9S4KO4uKvHm5Rp23p7pLjP34UqS+J 3pFdut/6a2tT9zIW39JdOnLtgJWweHWt22knDEi6NbHYwuZqSefIJiYkvVJNxX08HqMY zqel1rxDmD7j4COUQJVOPvZGk0mAFk4KbkMdHZ0HaMpqUpBMP6R9M0+YcAQU/wrcXJ5E oN0E7K8CjHYA3y8pdQfXF9ZoLCB9IgQWV2OwCgNwvjL7zSVwwa2ZxJ46RsxTXFpxIscL b1YA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=1; AJvYcCUbPGU1FUkNV32WmDdw85wAkoNZmyzS84uSySkHE0pipJI/7ymxSg72pyxyjnBUAmmAl7Pa@ilbers.de X-Gm-Message-State: AOJu0YxGIxdMrsOrcNTnB9fjJaJR3MOLQIL8a9uQB2tAAI0YzTd2DKA3 uEH3tKkEvk7ORQsjRWPopdYQJZL/ziqufNqa7nR8Pe0V334G0h4T X-Google-Smtp-Source: AGHT+IE7i7c5IElN3BFKC9HAbXJv4P/2kjDcrtnjVW/Qoe8PPf1cfieZIYYUT4mx+LlN1Kvfqm/law== X-Received: by 2002:ad4:5fc5:0:b0:6d8:9f61:de81 with SMTP id 6a1803df08f44-6df9b25420dmr92881866d6.24.1736428568238; Thu, 09 Jan 2025 05:16:08 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac8:4281:0:b0:463:1398:12c2 with SMTP id d75a77b69052e-46c7ab5a2a5ls13749741cf.2.-pod-prod-09-us; Thu, 09 Jan 2025 05:16:07 -0800 (PST) X-Received: by 2002:a05:620a:31a7:b0:7b1:51df:117f with SMTP id af79cd13be357-7bcd97a4bc0mr940399185a.56.1736428567057; Thu, 09 Jan 2025 05:16:07 -0800 (PST) Date: Thu, 9 Jan 2025 05:16:06 -0800 (PST) From: Cedric Hombourger To: isar-users Message-Id: <4db44c61-b230-4820-99e5-49d7ece0b1den@googlegroups.com> In-Reply-To: <3c780d3f-9542-40cd-940a-bc7a2d67a383@ilbers.de> References: <20250109121728.96932-1-srinuvasan.a@siemens.com> <0e5c17be-55f1-4646-b44b-a10ded2b745bn@googlegroups.com> <3c780d3f-9542-40cd-940a-bc7a2d67a383@ilbers.de> Subject: Re: [PATCH] isar-mmdebstrap: reduce rootfs size as much as possible MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_42660_1776290283.1736428566909" 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: uqhPDffLH4XW ------=_Part_42660_1776290283.1736428566909 Content-Type: multipart/alternative; boundary="----=_Part_42661_620957667.1736428566909" ------=_Part_42661_620957667.1736428566909 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le jeudi 9 janvier 2025 =C3=A0 13:58:37 UTC+1, Anton Mikanovich a =C3=A9cri= t : 09/01/2025 14:41, Cedric Hombourger wrote:=20 >=20 >=20 > Le jeudi 9 janvier 2025 =C3=A0 13:17:57 UTC+1, srinuv...@siemens.com a = =C3=A9crit :=20 >=20 > From: srinuvasan =20 >=20 > reduce the rootfs image size by excluding man and doc, this=20 > changes significantly reduce size from (~80MB) to (~64MB).=20 >=20 > Signed-off-by: srinuvasan =20 > ---=20 > meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 9 +++++++++=20 > 1 file changed, 9 insertions(+)=20 >=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 >=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 >=20 >=20 > Not.a good idea IMO - some users may want to build images with man=20 > pages / documentation=20 > At best this could be an image extension. It could take informed=20 > decisions: if /usr/bin/man isn=E2=80=99t there then remove man pages. Use= rs=20 > should be able to enable/disable that customisation=20 Agree, but maybe we can introduce some kind of global switch (features=20 implementation from Chris can be helpful here) to enable such kind of=20 hacks.=20 And of course it should be disabled by default.=20 I would surely vote for Chris=E2=80=99 implementation since it is something= he has=20 implemented at my request :). Glad to see that we have a use-case for it=20 (within this layer itself). Good feedback / suggestions Anton. =20 >=20 > DISTRO_BOOTSTRAP_KEYRING =3D "${WORKDIR}/distro-keyring.gpg"=20 >=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"=20 > "$1/etc/locale.gen"' \=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 --=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/= 4db44c61-b230-4820-99e5-49d7ece0b1den%40googlegroups.com. ------=_Part_42661_620957667.1736428566909 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Le jeudi 9 janvier 2025 =C3=A0 13:58:37 = UTC+1, Anton Mikanovich a =C3=A9crit=C2=A0:
09/01/2025 14= :41, Cedric Hombourger wrote:
>
>
> Le jeudi 9 janvier 2025 =C3=A0 13:17:57 UTC+1, srinuv...@siemens.com a =C3=A9crit=C2=A0:
>
> From: srinuvasan <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-mmdebstr= ap.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_HOOK_JESSIE') \
> MMHOOKS:focal ?=3D "${DPKG_HOOKS}"
> MMHOOKS:buster ?=3D "${DPKG_HOOKS}"
>
> +CLEANUP_DOCS =3D "--dpkgopt=3D'path-exclude=3D/usr/share/ma= n/*' \
> + --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/*/copyright' \
> + --dpkgopt=3D'path-include=3D/usr/share/doc/*/changelog.Deb= ian.*'"
> +
>
>
> Not.a good idea IMO - some users may want to build images with m= an=20
> pages / documentation
> At best this could be an image extension. It could take informed= =20
> decisions: if /usr/bin/man isn=E2=80=99t there then remove man p= ages. Users=20
> should be able to enable/disable that customisation
Agree, but maybe we can introduce some kind of global switch (feature= s
implementation from Chris can be helpful here) to enable such kind of= hacks.
And of course it should be disabled by default.

I would surely vote for Chris=E2= =80=99 implementation since it is something he has implemented at my reques= t :). Glad to see that we have a use-case for it (within this layer itself)= . Good feedback / suggestions Anton.
=C2=A0
>
> DISTRO_BOOTSTRAP_KEYRING =3D "${WORKDIR}/distro-keyring.gpg"
>
> 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/4db44c61-b230-4820-99e5-49d7ece0b1den%40googlegroups.com.
------=_Part_42661_620957667.1736428566909-- ------=_Part_42660_1776290283.1736428566909--