anchor.diff:  PACKAGES = "${PN}"
   
   SYSTEMD_SERVICE_${PN} = " \
  -    mnt-boot.mount \
  -    mnt-state.mount \
  -    mnt-data.mount \
       etc-docker.mount \
       etc-dropbear.mount \
  +    etc-hostname.mount \
       etc-systemd-system-resin.target.wants.mount \
       etc-systemd-timesyncd.conf.mount \
  -    etc-hostname.mount \
  +    home-root-.docker.mount \
  +    home-root-.rnd.mount \
  +    mnt-boot.mount \
  +    mnt-data.mount \
  +    mnt-state.mount \
       var-lib-systemd.mount \
       var-log-journal.mount \
  -    home-root-.rnd.mount \
  -    home-root-.docker.mount \
       "
   
   FILES_${PN} += " \
  +    /mnt/boot \
       /mnt/data \
       /mnt/state \
  -    /mnt/boot \
  +    ${sysconfdir} \
       ${systemd_unitdir} \
  -    ${sysconfdir} \
       "
   
   do_install () {
  +    install -d ${D}/etc/docker
  +    install -d ${D}/mnt/boot
  +    install -d ${D}/mnt/data
       install -d ${D}/mnt/state
  -    install -d ${D}/mnt/data
  -    install -d ${D}/mnt/boot
  -    install -d ${D}/etc/docker
   
       install -d ${D}${systemd_unitdir}/system
   
  
positive.code:     if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
          install -d ${D}${systemd_unitdir}/system
          install -c -m 0644 \
              ${WORKDIR}/mnt-boot.mount \
              ${WORKDIR}/mnt-state.mount \
              ${WORKDIR}/mnt-data.mount \
              ${WORKDIR}/etc-docker.mount \
              ${WORKDIR}/etc-dropbear.mount \
              ${WORKDIR}/etc-hostname.mount \
              ${WORKDIR}/etc-systemd-system-resin.target.wants.mount \
              ${WORKDIR}/etc-systemd-timesyncd.conf.mount \
              ${WORKDIR}/var-lib-systemd.mount \
              ${WORKDIR}/var-log-journal.mount \
              ${WORKDIR}/home-root-.rnd.mount \
              ${WORKDIR}/home-root-.docker.mount \
              ${D}${systemd_unitdir}/system
  
          # Yocto gets confused if we use strange file names - so we rename it here
  
negative.code:         install -c -m 0644 ${WORKDIR}/etc-NetworkManager-systemx2dconnections.mount ${D}${systemd_unitdir}/system/etc-NetworkManager-system\\x2dconnections.mount
          install -c -m 0644 ${WORKDIR}/etc-resinx2dsupervisor.mount ${D}${systemd_unitdir}/system/etc-resin\\x2dsupervisor.mount
  
          ln -sf ${systemd_unitdir}/system/etc-NetworkManager-system\\x2dconnections.mount ${D}${sysconfdir}/systemd/system/resin-bind.target.wants
          ln -sf ${systemd_unitdir}/system/etc-resin\\x2dsupervisor.mount ${D}${sysconfdir}/systemd/system/resin-bind.target.wants
      fi
  }
  