anchor.diff:  
   inherit deploy
   
  -PR = "r6"
  +PR = "r7"
   
   SRC_URI = " \
       file://Dockerfile \
  
positive.code: 
  do_deploy () {
      install ${B}/data_disk.img ${DEPLOYDIR}/data_disk.img
      echo ${PV} > ${DEPLOYDIR}/VERSION
  }
  
  addtask deploy before do_package after do_install
  
negative.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 -f '{{range .Config.Env}}{{.}}{{\"\\n\"}}{{end}}' %s:%s | grep '^VERSION=' | 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('SUPERVISOR_VERSION', version_output)
      image_id_cmd = "echo -n $(docker inspect -f '{{.Id}}' %s:%s)" % (target_repository, tag_repository)
      image_id_output = subprocess.Popen(image_id_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
      if image_id_output == "" or image_id_output == None:
          bb.fatal("resin-supervisor-disk: Cannot fetch image id.")
      d.setVar('PV', image_id_output)
  }
  
  do_patch[noexec] = "1"
  