From patchwork Thu Jan 9 12:17:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "srinuvasan.a" X-Patchwork-Id: 4000 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:18:10 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f64.google.com (mail-wm1-f64.google.com [209.85.128.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 509CI3pp027128 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 9 Jan 2025 13:18:06 +0100 Received: by mail-wm1-f64.google.com with SMTP id 5b1f17b1804b1-436723bf7ffsf7109765e9.3 for ; Thu, 09 Jan 2025 04:18:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736425077; cv=pass; d=google.com; s=arc-20240605; b=MccuACJPPPxSKG5duxj2lj8kJtL1SedE9e6X2hvKtjFqhQr5YW8XJ5P2IP/XDWsH4M IguFcdL41reUxbaTwDnqcTUzMyPKBcIrcJeaYItaPLulKQ/LenLU8sWkhl9dWRrLzISX aTUrWVCMjpLKtFAsb7Io5LNkFnN4KDrVWli7ZpuZWrwNPaHhbiaBCJ6cQ2plA2XYXg0C 3+iL3TqKzDue4ykktNeSMweDB91u2wVHIOYdtNJSNiXy3Y1B9HWgX016iTG0BE+3Sxpg irqnyf2y56ap76FzBbrn4zpolXMSjvAW6QFEd39CQ3YGrXs4101a30j9a049seH43ZVN xyFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HKUdCS1ya7bD4Dc/ZI5+OXj8lFB13J4Re0PME+Hz3V4=; fh=5HOru2zALERdgxju5Mr1XZR4W8Xcmu4XcQy8Ar59jFU=; b=b2BWytQ2fv0eDbuIQzu6qZ5cWNsCT5DFXRAuWUK+KwglTyA6YDSMP8FBhxML5GGV1L S1JYq+DMU9dtkyml/5PtYyBy0KQk6YEt7SnxR6UjF7jXDt0B2UbDtSrTV/aCjB7Blbt0 TU1iv0h/6xsV0rSzrg+26H3v5izYLYCd9MOEqghm7x+UMLfcm2MKWMCXJpAsVpDkQ3w2 ynvtPuLzfMW2XmGMoTr10WENT218I2ax7WuS/cWy3Y4gQnEfrp7GAcvWa1pC/k7D8JVF x1wvcG4vWHWZL9Smhl++ZNLTvXLxquwRvMJddOw85/SuWOmzLgAV9DuFCuVVto30IPOr xfIw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=tqq3HLU6; spf=pass (google.com: domain of fm-1324425-2025010912175447d3191c24e974e4a8-youjrc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1324425-2025010912175447d3191c24e974e4a8-youjrc@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1736425077; x=1737029877; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=HKUdCS1ya7bD4Dc/ZI5+OXj8lFB13J4Re0PME+Hz3V4=; b=fyFigu7gTya+ROcYnNslL+oEk6QgWVg0052kIVsdOoOXBj770FKR0T5Q32gI96HjRV 7tMWllMrJTHKOOHh5Sa/SHTF5YDRxmF7wTl/POVVgA3Mu9oVqnCp4/Kkflgz/wZ9hXXq sp+7EPTvx4Mm1L6g24VRc7Qmt5uSLA0wCL/magCBtLJszWYXqHaSnvo+AxYyOnEl7C5H bxVCwjN0w1NCAs19BfONIk863fd5wsYQsUirwuR6KYFTtNl/jUwaQy5IuqByvm9FSntN 6QLxhOnnlTL3e6+F9tUo9dVrk7Koekd9pq9fs0FIPMAaTPngInZE/YeB8U/f6Ugkrqlk 6hhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736425077; x=1737029877; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HKUdCS1ya7bD4Dc/ZI5+OXj8lFB13J4Re0PME+Hz3V4=; b=kT+FON9kQP0ZHYvIkRRNSO4yY/fhG5Y9lDOR5eGPZCzKaJthmJmXRX4WdM2PR10oyB eIUYBnrgYflaDxqUmnuj/ztZwzqpop5kzccQEJQBG8LUVfcPZa8o/5y1K2k8D0eTH5UF mFIdUFF3UvVQydYqCVaaRN7iI7DtqYLHHZO6WoKB9CQ/3nJaWvIfkiK+NiEI/flwb0v2 oF2IXzpCdaCVp1M/XKC0dSfTguIPu65pbqdN6DxV47xUpaKIHeuJAbcnjeF61SGl13tb Suk5GT1fC9LwGRNpzuSSPsSG5HCz8rjenlxRmmPZjqxa4RbBMOQ60Acc8lEjV492QdzA jyeA== X-Forwarded-Encrypted: i=2; AJvYcCWpubA//1yEA16jG/2ZVuTR3W1CmrIk4KzjTNbPfHFkXGRHcmEkyNaKiF6enzQN5XUxB7ZVHSk=@isar-build.org X-Gm-Message-State: AOJu0Ywf/ISrftYBvBluyfWgjEb6uecjY/6EwJZxU90nb/Bmik7ajIPc xpWBg0SoxNplGoh337LeFwQcP4R12FBO0XbddFDnBska1Moj1ORO X-Google-Smtp-Source: AGHT+IFOQwKJgbNRKtzqG1Vbve8kxTHQKotlXo+owCnhjEXTWX9UIKY0h6rnM6yHIQncM9oVagrIMg== X-Received: by 2002:a5d:6484:0:b0:385:d143:138b with SMTP id ffacd0b85a97d-38a87357274mr5438901f8f.51.1736425076876; Thu, 09 Jan 2025 04:17:56 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:a347:0:b0:386:3761:450f with SMTP id ffacd0b85a97d-38a8af75d5cls520218f8f.1.-pod-prod-05-eu; Thu, 09 Jan 2025 04:17:55 -0800 (PST) X-Received: by 2002:a5d:6c63:0:b0:38a:418e:1179 with SMTP id ffacd0b85a97d-38a872fc20bmr6380122f8f.2.1736425074628; Thu, 09 Jan 2025 04:17:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736425074; cv=none; d=google.com; s=arc-20240605; b=MB1KMXVwNPSRvcL/HB/6mmbfI8ac2Tf9Pq47OWMVTCoyPvvoWygZTNT9Lyzo0Sva7j SpMCTYLSAClujrggdkqnZx1u3giKMi3Hgf/2Bkjq6aVWyLV52yDCebj4fLafSCYUbHBN MTJrt1ijop1Hpx9BoDjiObEwuIB49JasfPQfu9J4gFggAjcFDLMPlh+b4krdXf1JskRw XsF6YEt2EoY4ukHe7AE35MxxbuwML12fprtACNB6bfQao+nMCU5h24Iwxpnyg1DdvoN5 KSjEjgL4Y0ttes98ZsvGtymDhfQCYZMbjgSLjHW5MFlMtsEu1jxNQVyHQlGW3oF1g8UA ADHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=QcR76mP8ehrCXh3KhuAUpt0mDd45MTbIOs0Yg1nYhFE=; fh=jiDQKWyS0lv/gWc15Ymc/xcPgU/VuRc+4Y0y3OSo5Mo=; b=KDYL3uESP5Z1grdw416PEWh/rW2qxAbhcpX70Ss64qHYVYXIJCJrN6wxbpFX0rTEGI desdGd0GyjyGstgsppckJs8qVzVs6NV+9K3rTxlTMKt7Gnitth4t+b2rMNTE3xK+K8pN zBuEd4gEV4MUi2eWrf8eykGT3XbiePhEH3gUL9RFAwJ6i+eegJHX6p6GxqQNNP8RDIz2 XDTIffJoIWoKWanH8L2LjoqABAhep/Y+RUdOg8iucCMIs0L75Y2e1d3KD18CNVavsntq +9pI7cUswJfgF04VEAyEX87wu4vqVz8uZxAV19sW4O81quFZCDHNeWFDMcmbLjoqyoPf H9oA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=tqq3HLU6; spf=pass (google.com: domain of fm-1324425-2025010912175447d3191c24e974e4a8-youjrc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1324425-2025010912175447d3191c24e974e4a8-youjrc@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net. [185.136.65.227]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-436dcceb343si2463715e9.0.2025.01.09.04.17.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jan 2025 04:17:54 -0800 (PST) Received-SPF: pass (google.com: domain of fm-1324425-2025010912175447d3191c24e974e4a8-youjrc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) client-ip=185.136.65.227; Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 2025010912175447d3191c24e974e4a8 for ; Thu, 09 Jan 2025 13:17:54 +0100 X-Patchwork-Original-From: "srinuvasan.a via isar-users" From: "srinuvasan.a" To: isar-users@googlegroups.com Cc: cedric.hombourger@siemens.com, amikan@ilbers.de, srinuvasan Subject: [PATCH] isar-mmdebstrap: reduce rootfs size as much as possible Date: Thu, 9 Jan 2025 17:47:28 +0530 Message-Id: <20250109121728.96932-1-srinuvasan.a@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1324425:519-21489:flowmailer X-Original-Sender: srinuvasan.a@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=tqq3HLU6; spf=pass (google.com: domain of fm-1324425-2025010912175447d3191c24e974e4a8-youjrc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1324425-2025010912175447d3191c24e974e4a8-youjrc@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: srinuvasan.a@siemens.com Reply-To: srinuvasan.a@siemens.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.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: srinuvasan reduce the rootfs image size by excluding man and doc, this changes significantly reduce size from (~80MB) to (~64MB). Signed-off-by: srinuvasan Signed-off-by: srinuvasan --- 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 ?= "${@'--hook-dir='+d.getVar('MM_HOOK_JESSIE') \ MMHOOKS:focal ?= "${DPKG_HOOKS}" MMHOOKS:buster ?= "${DPKG_HOOKS}" +CLEANUP_DOCS = "--dpkgopt='path-exclude=/usr/share/man/*' \ + --dpkgopt='path-include=/usr/share/man/man[1-9]/*' \ + --dpkgopt='path-exclude=/usr/share/locale/*' \ + --dpkgopt='path-include=/usr/share/locale/locale.alias' \ + --dpkgopt='path-exclude=/usr/share/doc/*' \ + --dpkgopt='path-include=/usr/share/doc/*/copyright' \ + --dpkgopt='path-include=/usr/share/doc/*/changelog.Debian.*'" + DISTRO_BOOTSTRAP_KEYRING = "${WORKDIR}/distro-keyring.gpg" def get_distro_have_https_source(d): @@ -199,6 +207,7 @@ do_bootstrap() { --customize-hook='sed -i "/en_US.UTF-8 UTF-8/s/^#//g" "$1/etc/locale.gen"' \ --customize-hook='chroot "$1" /usr/sbin/locale-gen' \ --customize-hook='chroot "$1" /usr/bin/apt-get -y clean' \ + ${CLEANUP_DOCS} \ --skip=cleanup/apt \ --skip=download/empty \ ${@get_apt_opts(d, '--aptopt')} \