* [PATCH] isar-image-base: purge installation logs of installed packages
@ 2017-11-10 10:28 Christian Storm
2017-11-17 15:28 ` Alexander Smirnov
2017-11-20 15:59 ` Henning Schild
0 siblings, 2 replies; 5+ messages in thread
From: Christian Storm @ 2017-11-10 10:28 UTC (permalink / raw)
To: isar-users; +Cc: Christian Storm
Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
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
--
2.15.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] isar-image-base: purge installation logs of installed packages
2017-11-10 10:28 [PATCH] isar-image-base: purge installation logs of installed packages Christian Storm
@ 2017-11-17 15:28 ` Alexander Smirnov
2017-11-17 16:38 ` Christian Storm
2017-11-20 15:59 ` Henning Schild
1 sibling, 1 reply; 5+ messages in thread
From: Alexander Smirnov @ 2017-11-17 15:28 UTC (permalink / raw)
To: Christian Storm; +Cc: isar-users
Hi,
What is the benefit of this patch? These logs take about 40KB for
default build.
Alex
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
> 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] isar-image-base: purge installation logs of installed packages
2017-11-17 15:28 ` Alexander Smirnov
@ 2017-11-17 16:38 ` Christian Storm
0 siblings, 0 replies; 5+ messages in thread
From: Christian Storm @ 2017-11-17 16:38 UTC (permalink / raw)
To: isar-users
> What is the benefit of this patch? These logs take about 40KB for
> default build.
Yes, but it sums up :)
Joking aside, I think this information is not necessary in the image and
can hence be deleted to save space, even if not much.
That said, you may also feel free to use this patch for the
isar-image-tiny [1] if not for the default "fat" one...
Kind regards,
Christian
[1] https://github.com/ilbers/isar/issues/24
--
Dr. Christian Storm
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Otto-Hahn-Ring 6, 81739 M�nchen, Germany
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] isar-image-base: purge installation logs of installed packages
2017-11-10 10:28 [PATCH] isar-image-base: purge installation logs of installed packages Christian Storm
2017-11-17 15:28 ` Alexander Smirnov
@ 2017-11-20 15:59 ` Henning Schild
2017-11-20 16:23 ` Jan Kiszka
1 sibling, 1 reply; 5+ messages in thread
From: Henning Schild @ 2017-11-20 15:59 UTC (permalink / raw)
To: [ext] Christian Storm; +Cc: isar-users
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" <christian.storm@siemens.com>:
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] isar-image-base: purge installation logs of installed packages
2017-11-20 15:59 ` Henning Schild
@ 2017-11-20 16:23 ` Jan Kiszka
0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2017-11-20 16:23 UTC (permalink / raw)
To: [ext] Henning Schild, [ext] Christian Storm; +Cc: isar-users
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" <christian.storm@siemens.com>:
>
>> Signed-off-by: Christian Storm <christian.storm@siemens.com>
>> ---
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-11-20 16:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-10 10:28 [PATCH] isar-image-base: purge installation logs of installed packages Christian Storm
2017-11-17 15:28 ` Alexander Smirnov
2017-11-17 16:38 ` Christian Storm
2017-11-20 15:59 ` Henning Schild
2017-11-20 16:23 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox