anchor.diff:  
   inherit deploy
   
  -PR = "r6"
  +PR = "r7"
   
   SRC_URI = " \
       file://Dockerfile \
  
positive.code:     imagechk_output = subprocess.Popen(imagechk_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
      if imagechk_output == "":
          bb.fatal("resin-supervisor-disk: No local supervisor images found.")
      version_cmd = "echo -n `docker inspect %s:%s | grep '\"VERSION=' | head -n 1 | tr -d ' ' | tr -d '\"' | tr -d 'VERSION=\"' `" % (target_repository, tag_repository)
      version_output = subprocess.Popen(version_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
      if version_output == "" or version_output == None:
          bb.fatal("resin-supervisor-disk: Cannot fetch version.")
      d.setVar('PV', version_output)
  }
  
  do_patch[noexec] = "1"
  
negative.code: 
  do_deploy () {
      install ${B}/data_disk.img ${DEPLOYDIR}/data_disk.img
      echo ${SUPERVISOR_VERSION} > ${DEPLOYDIR}/VERSION
  }
  
  addtask deploy before do_package after do_install
  