Remove unnecessary locale files at build time to reduce the image size.

This commit is contained in:
Daniil Baturin 2019-03-31 17:42:09 +02:00
parent dda8ec6f3a
commit bb30358048
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -23,3 +23,4 @@ htop
atop
iotop
aptitude
localepurge