public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] isar-image-base: purge locales and installed packages' .deb
@ 2017-11-08 10:09 Christian Storm
  2017-11-09 11:33 ` Alexander Smirnov
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Storm @ 2017-11-08 10:09 UTC (permalink / raw)
  To: isar-users; +Cc: Christian Storm

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-09 11:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 10:09 [PATCH] isar-image-base: purge locales and installed packages' .deb Christian Storm
2017-11-09 11:33 ` Alexander Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox