diff --git a/Dockerfile b/Dockerfile index 8799a81..daff1f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/patches/etc/locale.nopurge b/patches/etc/locale.nopurge new file mode 100644 index 0000000..d8460f0 --- /dev/null +++ b/patches/etc/locale.nopurge @@ -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