Moved cleanup after the final package upgrade

This commit is contained in:
Manfred Touron 2015-01-30 14:57:30 +00:00
parent 5dfb1c118b
commit f94c1eec25
1 changed files with 7 additions and 7 deletions

View File

@ -74,13 +74,6 @@ 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
@ -88,3 +81,10 @@ RUN systemctl enable oc-ssh-keys \
# packages upgrade
RUN pacman --noconfirm -Suy
# Cleanup
RUN pacman -Rns linux-armv7 --noconfirm \
&& pacman -Sc --noconfirm \
&& rm -rf /var/cache/pacman/pkg \
&& localepurge-config && localepurge