Free up ~70MB space again (#1)

This commit is contained in:
Manfred Touron 2015-01-30 14:02:54 +00:00
parent c8c2055ffa
commit 7aa288b7df
2 changed files with 61 additions and 6 deletions

View File

@ -14,6 +14,7 @@ RUN pacman -Sy --noconfirm \
dhcpcd \
iptables \
less \
localepurge \
man \
mg \
nano \
@ -47,12 +48,6 @@ RUN sed -e s/^\#en_US.UTF-8/en_US.UTF-8/ -i /etc/locale.gen \
&& locale-gen
# Cleanup
RUN pacman -Rns linux-armv7 --noconfirm \
&& pacman -Sc --noconfirm \
&& rm -rf /var/cache/pacman/pkg
# Systemd
RUN systemctl disable getty@tty1.service \
&& systemctl disable systemd-networkd.service \
@ -69,6 +64,13 @@ ADD ./patches/etc/ /etc/
ADD ./patches/usr/ /usr/
# Cleanup
RUN pacman -Rns linux-armv7 --noconfirm \
&& pacman -Sc --noconfirm \
&& rm -rf /var/cache/pacman/pkg \
&& localepurge-config && localepurge
RUN systemctl enable oc-ssh-keys \
&& systemctl enable oc-add-extra-volumes \
&& systemctl enable oc-sync-kernel-modules

View File

@ -0,0 +1,53 @@
####################################################
# This is the configuration file for localepurge(8).
####################################################
# Comment this to enable localepurge.
# NO COMMENT IT IF YOU ARE NOT SURE WHAT ARE YOU DOING
# THIS APP DO NOT ASK FOR CONFIRMATION
#NEEDSCONFIGFIRST
####################################################
# Uncommenting this string enables removal of localized
# man pages based on the configuration information for
# locale files defined below:
MANDELETE
####################################################
# Uncommenting this string causes localepurge to simply delete
# locales which have newly appeared on the system without
# bothering you about it:
#DONTBOTHERNEWLOCALE
#####################################################
# Commenting out this string enables faster but less
# accurate calculation of freed disk space:
#QUICKNDIRTYCALC
####################################################
# Uncommenting this string enables display of freed disk
# space if localepurge has purged any superfluous data:
SHOWFREEDSPACE
#####################################################
# Commenting out this string disables verbose output:
#VERBOSE
#####################################################
# You like Colors?
#NOCOLOR
#####################################################
# You can use the -v -d -nc options in command line.
#####################################################
# Following locales won't be deleted from this system
# for example:
en_US
en_US.UTF-8