How to deploy /data/mender on rootfs

Hi all,

mender-client version is 3.1.0

After we have built the image successfully, we have an issue because of the device_type file is missed. This file should be exist at /data/mender/device_type. We have looked at mender-client.bb and found this file is installed at ${D}/data/mender. But when we boot the image we could not find this file at /data/

Then we noticed that /data/mender is created alone at .dataimg. How we could install this file at rootfs /data without the need of .dataimg ?

Normally you would factory flash the device with the full disk image, with subsequent follow up updates using the mender rootfs artifact. Do you need to do something different then?