-
Hi,
The build is started as follows:
Unfortunately, the image creation fails at some point with the following error message:
I haven't dug into the code deep enough yet but it seems that the value of the MENDER_DEVICE_TYPE variable isn't used consistently during the build/config process.
but the INITRAMFS variables are probably not:
and that leads to the following output:
Not sure if this is a 'bug' or I am missing something. Any advice? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Me either, but I doubt it's related.
It looks like those are coming from poky at http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/kernel.bbclass?h=dunfell#n28 while the
I'm guessing you might be the first one trying to use a |
Beta Was this translation helpful? Give feedback.
-
I had trouble with this as well. The problem is that mender-core changes the definition of
Adding a I'm not sure why Mender makes that change in the first place, but I suspect it's because they want built Mender artifacts to include the device type name instead of the MACHINE name, to match the device type value that gets embedded in the artifact header. |
Beta Was this translation helpful? Give feedback.
I had trouble with this as well. The problem is that mender-core changes the definition of
IMAGE_NAME
andIMAGE_LINK_NAME
globally, replacing${MACHINE}
with${MENDER_DEVICE_TYPE}
. However, there are some places where built images get referenced by other recipes -kernel.bbclass
, which Dan mentioned, being a common one, since initramfs images are often bundled into the kernel. I worked around the issue by setting those two variables back to their${MACHINE}
-based values explicitly in my initramfs image recipes: