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; Fri, 20 Dec 2024 08:48:05 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4BK7m5ns013808 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 20 Dec 2024 08:48:05 +0100 Received: by mail-wm1-f60.google.com with SMTP id 5b1f17b1804b1-4362552ce62sf9083155e9.0 for ; Thu, 19 Dec 2024 23:48:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734680880; cv=pass; d=google.com; s=arc-20240605; b=bDsiq1cmW/WTFO1CCMzmpXbgKsWQ9F4FtRKrgRMy1yYMYIJpLEh2KVElqvRHVUO5iT BK/pxZtHBUnUqYMXHwEnMVJA4AKeA3Eehk4VHQlc/vUR6DRai4/vxVyXpwA4R7gA5qns dEoZ83q77UnIJ+d76lCPh+OqchvvKOaxUFa4+5IaGGyyEcaUKs0y9OeGmpkcpbitsO4I 6E7i4BpuV80jm7Kewg5UR6ZX4v/x2V5J/eirfGNfxuNTXrLwYAW4TCdWWVqB02u+8Ub+ 2cObuWBWJihYPHDrQTizZHff2uBBYEuK1tpTKCWfD9R1imjs2GAlPV+lntkAMAH/WsQE aogw== 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:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:to :from:subject:message-id:sender:dkim-signature; bh=tEDDHXlYoZzehjweYUYBW351KBxO2rpts7VhnpVyUgM=; fh=Q6Q4q8gORUUnNECSDMHOKvN8CKdKq11lLi8xxJY6cAI=; b=hxu/UaOCzYxBlW3rGqNTix+UCYUOBkA9hnxULBNteoGtZ/k7N0CKN0Ttjpg48JGkpQ nMIQ31j7OEZZcRHaCbHHmr5jKTY4ZLm47xyWJTSr/V3vZc0VZ82bqka4jZzabkACgtG5 vCOHI0gn5Bdz9EJHvvDbZIMInb9MX1ARxad8BMR7wyvWgeA2Kw5cjeRTvbdXYJhPVLR6 zn2RTV1SS0KlV7RrYDxk/cs/WU//JhxxkoXXGpx1usHHBxLi9RPd9+lGguDhRb2p7EnT SPM6ZTGnPiGihbkEALIe5EMkQfz6wDva41Czr1etpn+cyP8hArnuzsmrrXt8O0AOaD9V E1sw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1734680880; x=1735285680; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :autocrypt:references:in-reply-to:date:to:from:subject:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=tEDDHXlYoZzehjweYUYBW351KBxO2rpts7VhnpVyUgM=; b=xAXAA3k+9zKEqWCxTT/zCFqAJfrDwGrLNi7crEtO8+jEONxEw+vglXTBQl9BfJVlnY BcbZoCeTQk1r7aMl2Hlxl+77Ms/EVgnbc9L71vk2rT1fxRurABg9iF5U70dX56MVjVrj KbIT9mV3kkGzhWYr/UgrovoffpCznwapcz1UyfKoLtXUv27+Fkq16PXdON9HUXkbm73a xtdyiKRgLrd3V9vesSsz/v7gPyqvaohce25+TRhNZfExTDM7lM24icLh+mhGvQXZZa5r YYUg4Z3uXP7IXhVNFSSz59KwvM3/+RWRC/ETg0FDW0aZiaTHqoimNe2fxx1dDAhJE0VB 8hkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734680880; x=1735285680; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:to:from:subject:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=tEDDHXlYoZzehjweYUYBW351KBxO2rpts7VhnpVyUgM=; b=FXorp49b8CQFYowj4ej9bzJuXMy0pqIXZ+7DSswzGmB6DegqjiUzD9vV8HU4KXENgO QKTkq5jV1K6tdutm6m5GsNFryUV6Z1QRV1w7tClXQt25LVu5xATOSAS1g3uGfzKNIDyw TIjfrNcoh4Evvv0qBdA3MfCjQVQdu334geTHhcVraTuAWmjSCCt3UUsRrHqIxpBqd6CT C/RNjdmXd+dj2gq7px/jZt/ULIQ+TCWQ25PPFHESodCaDLDZXyyn5d/CM7um/h7mSHaj AzHL2qFyaG33cnv3opyLNSg0oDAOx8y06NSikOObEXSXk1dytpC3r+D1mltz266VHvjj rR4Q== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWe2QIlrMC+Yf86EuFp31qcri9G27WZPRGhle1D3F+HiE8gdzcupsk7K8xcR+pEcePFBNHn@ilbers.de X-Gm-Message-State: AOJu0YxtG0CX/GzXcbqm9F9MDQSM+hJD0+kB0U5RnNsdOfrUsXtzscNe yw+V+B4PZVxN+i+TRNZnheXkTjUKwgOASwoQ7oIgkZrYkA0QcD1U X-Google-Smtp-Source: AGHT+IGawm9YBnWm91cMyuVHvHW/oRSfTFQQlx2gUJ7JDjbnPSbT0iz3E6RfMK4IQ1fEsOXdLzdnrQ== X-Received: by 2002:a05:6000:1882:b0:385:e1e5:fff3 with SMTP id ffacd0b85a97d-38a22405593mr1452490f8f.57.1734680879118; Thu, 19 Dec 2024 23:47:59 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:3504:b0:434:9ce6:3e4 with SMTP id 5b1f17b1804b1-43661dd5a97ls8283485e9.1.-pod-prod-01-eu; Thu, 19 Dec 2024 23:47:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVm76/QSXNIrSknGzzV4oOFu2oTOzzgHu5tFSFZ7guv+0x5jEdP1aPrp44fS8qeldWYS3ZjV0DsjYZb@googlegroups.com X-Received: by 2002:a05:600c:1ca7:b0:434:fe3c:c67c with SMTP id 5b1f17b1804b1-43668b5e201mr11716015e9.26.1734680876725; Thu, 19 Dec 2024 23:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734680876; cv=none; d=google.com; s=arc-20240605; b=MXy1049yb3e9qgaWnlm2ADjhiTZrIEeoC0mpVriA7dsvteDEUyLa+/PW5xF3R4U9VZ G+D3mAUplFL3eeB+vP/F6RYj/DoE0bZiXiQvVpElWmDXPbzzqxYZpdQb+oTZ8l3NfOad 61nrk70N449TXZ4RZIC22hTuuh17k6fj7M8zECBZraxJ1JYbD77qIilCh1fUnWICpTSz nBMH3FDrt+Djt0l9qSrwdRJXTvA4YXV/EIFtpqc3iXxVQ1nyH+4uDnbzZ6tuLJC73pTU YgcZgR5/7KYuBFA+aiAlXFJrAPDtgGAnwlWt3gEi5ouysUoNlqmwrTrjltcFrxvyOvWR AxHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:to:from:subject:message-id; bh=I6CpxV4ZCr8NLDgu0zvohPSquCNFmEs89I3IviGA1iY=; fh=O8qOVoyC4kVwjYhl6ndzNlnWHnJpUJcq4mpswxQLIKQ=; b=YKzQr8ta8E6lqvLhbcfIyuSSJONQsFThyORn3fWhzum2eHKVOxcFej4Qdyml/oeLGx OBSD4GhuMArUwqp5jwL/Kxw6rXvccJC3E1GjL+YeJn2b+lhjzXQyZkswUt1o6kbn3u/N lqQjGynGDOFlHgimyw7tT8gBAndps0+LraTSah0djKwvDP/uEn6TebCAgrr4vPKb2Erb 4Ie4fDi/k911fTECPES56wpsIuRdMDMTXbcq0fB3IiIVMRRa1oNVKWk/5zQtky35jBPq 9GMqbuis2Xx0ByF6SBbm3UnoEJYzvCLL++XkO+7CECOmgw0IbRSPb0bqFV2tOU3LS9zm Dwag==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-436611fb370si400215e9.1.2024.12.19.23.47.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Dec 2024 23:47:56 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [IPv6:::1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4BK7lrf0013803 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Dec 2024 08:47:55 +0100 Message-ID: <1591092b68fd8c82c513d57efb910c58c076d6d3.camel@ilbers.de> Subject: Re: [PATCH v1] rootfs: clean up the base-apt list conditionally in the image rootfs From: Uladzimir Bely To: srinuvasan.a@siemens.com, isar-users@googlegroups.com Date: Fri, 20 Dec 2024 10:47:53 +0300 In-Reply-To: <20241216055917.1284431-1-srinuvasan.a@siemens.com> References: <20241216055917.1284431-1-srinuvasan.a@siemens.com> Autocrypt: addr=ubely@ilbers.de; prefer-encrypt=mutual; keydata=mQENBGO2eUkBCACtT+T3OrPVSExBmqfgXT3lp9XcdxRzjYp26wezkgYjjBXaf36bxtaAf S471VoQtpar0RVeFfW7WDDdfX9ZclSj36zBQe+RVSJzoNoNQfjOXWuSHb5Z+cpAFtqBY4muxK4+ia IlLJd6CN3ejOsLHATtCeHHq8wi0z2T+KdLQO+wQRgo2hjj0Lp9pGTrKJry50HP/o7Vbdu14dOx2xq r8+wPc6SQbBIrcqaa4MqCQC00vQG7eXvo+k2MOw59FDdpMH0KR9mHgp3u/s4I+4YRBArukt9G9xz/ rsEFmxAIBC6N/a6Hzwg4puc91n7ABDsPg8Vp+X3MDraujN0dvR6OKVNtABEBAAG0IFVsYWR6aW1pc iBCZWx5IDx1YmVseUBpbGJlcnMuZGU+iQFOBBMBCAA4FiEEJqPNVhVGyk12Eh+PAUQYBM/2FkoFAm O2eUkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQAUQYBM/2FkprlAgAmuna8Hm9EyoEtTl DBGDg6Zm4ZLp5ffvZBE946h92jepDrteoxsJ7pSzJVC2HmDLa4iZUao7lLLbDsUj5x45/iLJcqBZK k3YnAxP2r6a+kI+1VVQY1pxdG1nlJAbdNzoojm/qmezNPSrqni61KVMQKsXBCWhIjSXDSM9CsBj21 a+9qaVqfxovJGTn9lgrZO+xzKQNMKZeOouJlscVuFj21P0ww3/YENiU/nMeTSuYypO76mDtAd08Jo nc3yuHa9MJGei5ixN3wT+IrGR2aL2hdw2M6NgH7sYbL2Zi4ugD6RXHJai1Bh2yvFSVqSQ+M6QOInT 4ud7wslm1XRB065dXtA== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.2 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, 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-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de 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-TUID: m8qtMSjUnMDI On Mon, 2024-12-16 at 11:29 +0530, srinuvasan.a via isar-users wrote: > From: srinuvasan >=20 > base-apt list is created under /etc/apt/sources.list.d only when we > enable the ISAR_USE_CACHED_BASE_REPO as "1", otherwise, we use the > bootstrap.list >=20 > Presently the removal of base-apt.list is happening unconditionally, > hence remove the base-apt list only when we use the local cached > repo. >=20 > isar-mmdebstrap generates the base-apt list with prefixes 0000 > (0000base-apt.list) > and isar-bootstrap generates the base-apt list with no prefixes > (base-apt.list) > handle the scenario to remove if any one of the list present under > /etc/apt/sources.list.d >=20 > Signed-off-by: srinuvasan > --- > =C2=A0meta/classes/rootfs.bbclass | 6 +++--- > =C2=A01 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/meta/classes/rootfs.bbclass > b/meta/classes/rootfs.bbclass > index dd43fd4e..205da640 100644 > --- a/meta/classes/rootfs.bbclass > +++ b/meta/classes/rootfs.bbclass > @@ -359,16 +359,16 @@ rootfs_cleanup_isar_apt() { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 set -e > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rm -f "${ROOTFSDIR}/etc/= apt/sources.list.d/isar-apt.list" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rm -f "${ROOTFSDIR}/etc/= apt/preferences.d/isar-apt" > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rm -f "${ROOTFSDIR}/etc/apt/a= pt.conf.d/50isar" > =C2=A0EOSUDO > =C2=A0} > =C2=A0 > -ROOTFS_POSTPROCESS_COMMAND +=3D "rootfs_cleanup_base_apt" > +ROOTFS_POSTPROCESS_COMMAND +=3D "${@'rootfs_cleanup_base_apt' if > bb.utils.to_boolean(d.getVar('ISAR_USE_CACHED_BASE_REPO')) else ''}" > =C2=A0rootfs_cleanup_base_apt[weight] =3D "2" > =C2=A0rootfs_cleanup_base_apt() { > =C2=A0=C2=A0=C2=A0=C2=A0 sudo -s <<'EOSUDO' > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 set -e > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rm -f "${ROOTFSDIR}/etc/apt/s= ources.list.d/base-apt.list" > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rm -f "${ROOTFSDIR}/etc/apt/a= pt.conf.d/50isar" > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rm -f "${ROOTFSDIR}/etc/apt/s= ources.list.d/*base-apt.list" > =C2=A0EOSUDO > =C2=A0} > =C2=A0 > --=20 > 2.39.5 >=20 Applied to next, thanks. --=20 Best regards, Uladzimir. --=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/= 1591092b68fd8c82c513d57efb910c58c076d6d3.camel%40ilbers.de.