anchor.diff:  require docker-disk.inc
   
  -# TARGET_REPOSITORY needs to be defined externally (ex. bbappend)
  -# as it is arch specific
  -TARGET_TAG = "${SUPERVISOR_TAG}"
  +TARGET_REPOSITORY ?= "${SUPERVISOR_REPOSITORY}"
  +TARGET_TAG ?= "${SUPERVISOR_TAG}"
   LED_FILE ?= "/dev/null"
  -
  -# By default preload supervisor image
  -SUPERVISOR_NO_PRELOAD ?= "0"
   
   inherit systemd
   
  
positive.code:     import subprocess
  
      target_repository = d.getVar('TARGET_REPOSITORY', True)
      tag_repository = d.getVar('TARGET_TAG', True)
      no_preload = d.getVar('SUPERVISOR_NO_PRELOAD', True)
  
      if not target_repository:
          bb.fatal("resin-supervisor-disk: One or more needed variables are not available in resin-supervisor-disk. Usually these are provided with a bbappend.")
  
      # Set SUPERVISOR_IMAGE so we can have it saved in case of no preloaded images
      d.setVar('SUPERVISOR_IMAGE', target_repository)
  
      if no_preload == "1":
          d.setVar('TARGET_REPOSITORY','')
          d.setVar('TARGET_TAG','')
          d.setVar('SUPERVISOR_VERSION','0.0.0')
          d.setVar('PV','0.0.0')
          return
  
negative.code:     d.setVar('PV', "%s+%s" % (version_output, image_id_output.split(':',1)[-1]))
  }
  
  do_install () {
      # Generate supervisor conf
      install -d ${D}${sysconfdir}
      install -m 0755 ${WORKDIR}/supervisor.conf ${D}${sysconfdir}/
      sed -i -e 's:@SUPERVISOR_REPOSITORY@:${SUPERVISOR_REPOSITORY}:g' ${D}${sysconfdir}/supervisor.conf
      sed -i -e 's:@LED_FILE@:${LED_FILE}:g' ${D}${sysconfdir}/supervisor.conf
  
      install -d ${D}/resin-data
  