aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL/common.d/99_cleanup
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2017-05-11 01:06:09 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2017-05-11 01:06:09 +0200
commita7bf03217af780f4245af555efdbfdc7ca9e2935 (patch)
tree66698dc80d43d3ff023560bc483acf66a964212d /INSTALL/common.d/99_cleanup
parentf32036a025d8ae7e6ef02aca8b080e5bca60fc11 (diff)
Introduce flavours for containers
Multiple variations over a common base must be supported when creating AGL containers. This commit introduces 'flavours' to achive this goal (see README.md for details). Current supported flavours: * generic : same image as before * xds : new image dedicated to AGL DevKit Change-Id: I0aa65a1d9e83a2d7aed43e0b135dc43c5537bc53 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'INSTALL/common.d/99_cleanup')
-rw-r--r--INSTALL/common.d/99_cleanup18
1 files changed, 18 insertions, 0 deletions
diff --git a/INSTALL/common.d/99_cleanup b/INSTALL/common.d/99_cleanup
new file mode 100644
index 0000000..3cea352
--- /dev/null
+++ b/INSTALL/common.d/99_cleanup
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+apt-get autoremove -y
+
+# remove big useless files
+rm -rf /usr/lib/x86_64-linux-gnu/dri/*.so
+rm -rf /usr/lib/perl/5.*/auto/Encode/JP/JP.so
+rm -rf /usr/lib/perl/5.*/auto/Encode/KR/KR.so
+rm -rf /usr/lib/perl/5.*/auto/Encode/CN/CN.so
+rm -rf /usr/lib/perl/5.*/auto/Encode/TW/TW.so
+
+# keep doc ?
+#rm -rf /usr/share/doc
+#rm -rf /usr/share/man
+#rm -rf /usr/share/locale
+
+
+