Skip to content

Using custom MENDER_DEVICE_TYPE #95

Answered by madisongh
lhrvth asked this question in Q&A
Discussion options

You must be logged in to vote

I had trouble with this as well. The problem is that mender-core changes the definition of IMAGE_NAME and IMAGE_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:

# Mender changes these globally, but for the initramfs image we
# need them to be the normal MACHINE-based names.
IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${IMAGE_VERSION_SUFFIX}…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lhrvth
Comment options

Answer selected by lhrvth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants