anchor.diff:  SRCREV = "0fe5161dac2db56a32d428e5e455efd62ad26a50"
   SRCBRANCH = "17.06-resin"
   SRC_URI = "\
  -  git://github.com/resin-os/balena.git;branch=${SRCBRANCH};nobranch=1 \
  +  git://github.com/resin-os/balena.git;branch=${SRCBRANCH};nobranch=1;destsuffix=git/src/import \
     file://balena.service \
     file://balena-host.service \
     file://balena-healthcheck \
  
positive.code: 
  do_install() {
    mkdir -p ${D}/${bindir}
    install -m 0755 ${S}/bundles/${BALENA_VERSION}/dynbinary-balena/balena ${D}/${bindir}/balena
    install -d ${D}/boot
    install -m 0755 ${S}/cmd/mobynit/mobynit ${D}/boot/init
    echo ${BALENA_STORAGE} > ${D}/boot/storage-driver
  
    ln -sf balena ${D}/${bindir}/balenad
  
negative.code:   ln -sf balena ${D}/${bindir}/balena-proxy
  
    install -d ${D}${systemd_unitdir}/system
    install -m 0644 ${S}/src/import/contrib/init/systemd/balena.* ${D}/${systemd_unitdir}/system
  
    install -m 0644 ${WORKDIR}/balena.service ${D}/${systemd_unitdir}/system
    sed -i "s/@BALENA_STORAGE@/${BALENA_STORAGE}/g" ${D}${systemd_unitdir}/system/balena.service
  