diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-03-31 17:42:09 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-03-31 17:42:09 +0200 |
commit | be746f0e8631246900f31c4d40b6a0b26e8a0040 (patch) | |
tree | 66d4de63514a94d8d4cad879c5df5f619944829d /data | |
parent | 7e2a2e37e72e649b5eb42362e0469101c7ce19cc (diff) | |
download | vyos-build-be746f0e8631246900f31c4d40b6a0b26e8a0040.tar.gz vyos-build-be746f0e8631246900f31c4d40b6a0b26e8a0040.zip |
Remove unnecessary locale files at build time to reduce the image size.
Diffstat (limited to 'data')
-rwxr-xr-x | data/live-build-config/hooks/live/90-localepurge.chroot | 12 | ||||
-rw-r--r-- | data/live-build-config/package-lists/vyos-utils.list.chroot | 1 |
2 files changed, 13 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 diff --git a/data/live-build-config/package-lists/vyos-utils.list.chroot b/data/live-build-config/package-lists/vyos-utils.list.chroot index 0acf9efa..3e45f873 100644 --- a/data/live-build-config/package-lists/vyos-utils.list.chroot +++ b/data/live-build-config/package-lists/vyos-utils.list.chroot @@ -23,3 +23,4 @@ htop atop iotop aptitude +localepurge |