summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-03-31 17:42:09 +0200
committerDaniil Baturin <daniil@baturin.org>2019-03-31 17:42:50 +0200
commitbb3035804811a1491f3e68d1aa26bb270b425c22 (patch)
tree5e3c34c5409591ece43963ebc9bbccaaf4401a44 /data/live-build-config/hooks
parentdda8ec6f3a46b2dfe9f627c620b7fb57c25d70dc (diff)
downloadvyos-build-bb3035804811a1491f3e68d1aa26bb270b425c22.tar.gz
vyos-build-bb3035804811a1491f3e68d1aa26bb270b425c22.zip
Remove unnecessary locale files at build time to reduce the image size.
Diffstat (limited to 'data/live-build-config/hooks')
-rwxr-xr-xdata/live-build-config/hooks/live/90-localepurge.chroot12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/90-localepurge.chroot b/data/live-build-config/hooks/live/90-localepurge.chroot
new file mode 100755
index 00000000..f6637d73
--- /dev/null
+++ b/data/live-build-config/hooks/live/90-localepurge.chroot
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+LPCONF=/etc/locale.nopurge
+
+echo MANDELETE > $LPCONF
+echo DONTBOTHERNEWLOCALE >> $LPCONF
+echo SHOWFREEDSPACE >> $LPCONF
+echo QUICKNDIRTYCALC >> $LPCONF
+echo en >> $LPCONF
+echo en_US.UTF-8 >> $LPCONF
+
+/usr/sbin/localepurge