Fixed cleanup and install order

This commit is contained in:
Manfred Touron 2015-01-30 15:29:08 +00:00
parent 1011c3daf5
commit b62f0599e4
1 changed files with 7 additions and 5 deletions

View File

@ -68,23 +68,25 @@ RUN systemctl disable getty@tty1.service \
&& systemctl enable ntpdate
# packages upgrade
RUN pacman --noconfirm -Suy
# Patch rootfs
RUN wget -qO - http://j.mp/ocs-scripts | bash
ADD ./patches/etc/ /etc/
ADD ./patches/usr/ /usr/
# Enable Online-Labs services
RUN systemctl enable oc-ssh-keys \
&& systemctl enable oc-add-extra-volumes \
&& systemctl enable oc-sync-kernel-modules
# packages upgrade
RUN pacman --noconfirm -Suy
# Cleanup
RUN pacman -Rns linux-armv7 --noconfirm \
RUN pacman-db-upgrade \
&& pacman -Rns linux-armv7 --noconfirm \
&& pacman -Sc --noconfirm \
&& rm -rf /var/cache/pacman/pkg \
&& localepurge-config && localepurge