From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6486731036500688896 X-Received: by 10.223.141.212 with SMTP id o78mr1011941wrb.13.1511193548054; Mon, 20 Nov 2017 07:59:08 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.215.144 with SMTP id o138ls1046012wmg.2.gmail; Mon, 20 Nov 2017 07:59:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMb2SDj+ahy9pPW+JYIFJ/VMDdnghmC24TDsctS8GI3OIKOJg4eSNn5BemyZAKNSPCugVzW/ X-Received: by 10.223.145.165 with SMTP id 34mr1103878wri.17.1511193547838; Mon, 20 Nov 2017 07:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511193547; cv=none; d=google.com; s=arc-20160816; b=VSJ903EJythEUrZxe/MPCGxHQ3GbF6EMVg3r9KpDlF6hfhQPln3uUAYEBRunU1xHlR fMHIv6vuNk52zDTGyng7a/ugp2pX8F4paobz885BahPSdR7XAxet7lp32OtxUhYJLx3W uwXbasaw5LeVrz8ALxm8XyhCyb0gkOHK2qC95KLrdeIYlp1TzlmnC4m+4rVj1SW4JNXr nrlN1NqGk+54h7Ruc0oorC+KxJlWutTc6pkcTs/K6WDmBaQTVyAassy0xVeCf/8KPXh5 McxGCoLXWFD+2bRYTbHURZtQrP//Dy/piZlnQpyHwqUgvqv3+X+ZtuDETrMVwIjL7kc9 MorQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=wTgifSR73VsALcO5TxQhdLmxr6JPDm1BXz0hcoofn/c=; b=yoJuWSRsNBCL/NnfPkEylVt9f6exyfcDX2bwtW+U8I7WJSMnL05wNuzugGWeCAQ+ju ePWzA7nsIPTGMafhfgGkCje/Xb+lHMLwvg0WFRDzkkw5f9LSGQzhxbYwt+yp4j/Y/1w9 Ra5Xst+pwd5FyRLT5nGv41YpzyfLkw+iPpR0AEYP2wY8O5ZsW1SLXVYAMBS9b6aIT50X nl1KhNyx6DJmhZrD6Yq7cmx9Lnx5sFXU6ggBYEUAkOUyS4PNG6CL1sB2ml1b9JfNkVyX GkkcZSPmydknnVxDtirreV2bYSEn4EuGckXyJ8f+szQLYg6xrVx4MoqUAHnoagdarq7J fpTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id z15si294300wmc.3.2017.11.20.07.59.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 07:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id vAKFx75A020494 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 20 Nov 2017 16:59:07 +0100 Received: from md1em3qc ([139.25.68.40]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id vAKFx77G032004; Mon, 20 Nov 2017 16:59:07 +0100 Date: Mon, 20 Nov 2017 16:59:25 +0100 From: Henning Schild To: "[ext] Christian Storm" Cc: Subject: Re: [PATCH] isar-image-base: purge installation logs of installed packages Message-ID: <20171120165925.73100f2b@md1em3qc> In-Reply-To: <20171110102808.30102-1-christian.storm@siemens.com> References: <20171110102808.30102-1-christian.storm@siemens.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: ENXAzTsNUEb0 It does not matter how much space we can save with individual directories and we might as well start the discussion on 40k. I think we will need a cleanup script to run after multistrap, or (better) as a hook to the last package we install. That mechanism needs to be customizable from a layer and it needs to be optional. So the configscript is the wrong place. Henning Am Fri, 10 Nov 2017 11:28:08 +0100 schrieb "[ext] Christian Storm" : > Signed-off-by: Christian Storm > --- > meta-isar/recipes-core/images/files/debian-configscript.sh | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git > a/meta-isar/recipes-core/images/files/debian-configscript.sh > b/meta-isar/recipes-core/images/files/debian-configscript.sh index > 33b2b53..b0e3f6d 100755 --- > a/meta-isar/recipes-core/images/files/debian-configscript.sh +++ > b/meta-isar/recipes-core/images/files/debian-configscript.sh @@ -76,6 > +76,9 @@ fi localepurge apt-get clean > > +# Purge installation logs of installed packages > +rm -f /var/log/dpkg.log /var/log/alternatives.log > + > # Undo setup script changes > if [ -x "$TARGET/sbin/start-stop-daemon.REAL" ]; then > mv -f $TARGET/sbin/start-stop-daemon.REAL > $TARGET/sbin/start-stop-daemon