anchor.diff:  ## -*- docker-image-name: "armbuild/ocs-debian:wheezy" -*-
   FROM armbuild/debian:wheezy
   MAINTAINER Online Labs <opensource@ocs.online.net>
  +
    	    	    
  +# Environment
   ENV DEBIAN_FRONTEND noninteractive
  +# Useful for image inheritance
   ENV OCS_BASE_IMAGE armbuild/ocs-debian:wheezy
  +
   
   # Patch rootfs for docker-based builds
   RUN apt-get -q update && \
  -    apt-get -y -qq install wget && \
  +    apt-get -y -qq install wget lsb-release && \
       apt-get clean && \
  -    mkdir -p /usr/local/sbin && \
  -    wget -q https://raw.githubusercontent.com/online-labs/ocs-scripts/master/skeleton-docker-based/usr/local/sbin/builder-enter -O /usr/local/sbin/builder-enter && \
  -    chmod +x /usr/local/sbin/builder-enter && \
  +    wget --no-check-certificate https://codeload.github.com/online-labs/ocs-scripts/tar.gz/master -O /tmp/builder-enter.tgz && \
  +    tar --strip=2 -C / -xzvf /tmp/builder-enter.tgz ocs-scripts-master/skeleton-docker-based/usr/local/sbin/builder-enter && \
  +    rm -f /tmp/builder-enter.tgz && \
       /usr/local/sbin/builder-enter
   
   
   # Install packages
   ADD ./patches/etc/apt/sources.list /etc/apt/sources.list
   RUN apt-get -q update && \
  -    apt-get -q upgrade && \
  -    apt-get install -y -q \
  +    apt-get -y -qq upgrade && \
  +    apt-get install -y -qq \
   	ca-certificates \
   	cron \
   	curl \
  
positive.code: RUN rm -f /etc/motd && ln -s /var/run/motd /etc/motd
  ADD ./patches/etc/ /etc/
  
  # Configure locales
  RUN locale-gen
  
  # Configure SysV
  RUN update-rc.d ssh-keys defaults && \
  
negative.code:     update-rc.d nbd-add-extra-volumes defaults && \
      update-rc.d oc-force-dhclient defaults
  
  
  # Clean rootfs from image-builder
  RUN /usr/local/sbin/builder-leave
  