From: Christian Storm <christian.storm@siemens.com>
To: isar-users@googlegroups.com
Cc: Christian Storm <christian.storm@siemens.com>
Subject: [PATCH] isar-image-base: purge locales and installed packages' .deb
Date: Wed, 8 Nov 2017 11:09:59 +0100 [thread overview]
Message-ID: <20171108100959.770-1-christian.storm@siemens.com> (raw)
In order to reduce the resulting image's storage footprint,
remove the installed packages' .deb files from the image.
Alike, remove unused locales.
Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
meta-isar/recipes-core/images/files/debian-configscript.sh | 4 ++++
meta-isar/recipes-core/images/isar-image-base.bb | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
mode change 100644 => 100755 meta-isar/recipes-core/images/files/debian-configscript.sh
diff --git a/meta-isar/recipes-core/images/files/debian-configscript.sh b/meta-isar/recipes-core/images/files/debian-configscript.sh
old mode 100644
new mode 100755
index 7303598..33b2b53
--- a/meta-isar/recipes-core/images/files/debian-configscript.sh
+++ b/meta-isar/recipes-core/images/files/debian-configscript.sh
@@ -72,6 +72,10 @@ if [ -f /etc/inittab ]; then
>> /etc/inittab
fi
+# Purge unused locale and installed packages' .deb files
+localepurge
+apt-get clean
+
# 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
diff --git a/meta-isar/recipes-core/images/isar-image-base.bb b/meta-isar/recipes-core/images/isar-image-base.bb
index 7e36e22..42aaea3 100644
--- a/meta-isar/recipes-core/images/isar-image-base.bb
+++ b/meta-isar/recipes-core/images/isar-image-base.bb
@@ -21,7 +21,8 @@ inherit image
DEPENDS += "${IMAGE_INSTALL}"
IMAGE_PREINSTALL += "apt \
- dbus"
+ dbus \
+ localepurge"
WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}"
--
2.15.0
next reply other threads:[~2017-11-08 10:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 10:09 Christian Storm [this message]
2017-11-09 11:33 ` Alexander Smirnov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171108100959.770-1-christian.storm@siemens.com \
--to=christian.storm@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox