From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6486731036500688896 X-Received: by 10.46.127.12 with SMTP id a12mr522325ljd.25.1511194993527; Mon, 20 Nov 2017 08:23:13 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.88.90 with SMTP id x26ls1494885ljd.16.gmail; Mon, 20 Nov 2017 08:23:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMaTgcpEVE9RgFZ7sIqV7hi2Papz+umdrox5xZboQjlaCnbQnrU5BdRFNGjFXLuC3GB/VpSh X-Received: by 10.46.84.12 with SMTP id i12mr503027ljb.14.1511194993079; Mon, 20 Nov 2017 08:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511194993; cv=none; d=google.com; s=arc-20160816; b=yhP5PUa6EfdC+Rc3fzJMBKjTFhkO92KE+mQyKipBLPPeRnYALCw4bCiKU9nh+Fifkq 2HHo37fdaNs/Z9JnPsDIXKEQKLIraFfzmMmqRdvRqvG/TfuvhPwXaB43E6/qMpiQDsJl xJmNj4BBOsacmzXz0tczaL7Xc8/PTa2+NzeH6U8qEACyz7agZPY/NxdEF41u37ZReY5L 2hVJMGJEnNHMxHj9uGnhrh6+J+qtuEHr3Iq/7zJ0b4Rts+mxFl6XH7W/dKgvdOvn41XH QJHvWN/tVorLuusZuWHe1+HNhEki3PXeV4VOkCH9QhdyOKtHSBmzpyaxgbDylOyiutT1 gKyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :arc-authentication-results; bh=KWMHJZSwSzgkoMTE7OvPaQz6jXU5nKziMuqvR/umFn8=; b=NimRvzUcdrSckH25BhxgVZQgOEFxIAOfg857UW1WQyFU/FB8qdiU6d8ebIlefDb0EN Ym6KPB2eELyiDJY1KvUrfWAk0O3tRl00kFClsehfWycsaov1u89ztCnjX/SfQfXbD8/N vrHMLH6jHEj6RATdOLnJ0gRF51iKCypElNmdEHBKI3DICGiWXCQItzA2fgaIwjwJxzQM HM/c3XQwUCsedFdjMTVWYSO1fIrwe3gPQv1fLwPNdwaSIG7t/mkklMpiXPE4qpJjl789 ZxprxtS46LZkYMKFXE8R0g0MRZtZUp5VcDK0IfS3l/a61fwmQzDiWqHRWdLquoU84tDk c5+Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id 198si220097ljj.1.2017.11.20.08.23.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 08:23:13 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vAKGNCck021994 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 20 Nov 2017 17:23:12 +0100 Received: from md1f2u6c.ww002.siemens.net ([139.25.68.37]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id vAKGNCd7001263; Mon, 20 Nov 2017 17:23:12 +0100 Subject: Re: [PATCH] isar-image-base: purge installation logs of installed packages To: "[ext] Henning Schild" , "[ext] Christian Storm" Cc: isar-users@googlegroups.com References: <20171110102808.30102-1-christian.storm@siemens.com> <20171120165925.73100f2b@md1em3qc> From: Jan Kiszka Message-ID: Date: Mon, 20 Nov 2017 17:23:10 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20171120165925.73100f2b@md1em3qc> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: k1KbVcHWTSWV On 2017-11-20 16:59, [ext] Henning Schild wrote: > 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. ...and modularized so that you can select something like "remove package data base" on a per project basis and without having to write and maintain the rules for that yourself. Jan > > 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 > -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux