Hi, and thanks for the native scheme. We evaluated it as a replacement for classic, because the architecture is a meaningful simplification. We hit three limitations and wanted to ask whether native is meant to support them.
-
State scripts are not packed into the artifact.
image_types_mender_tegra_native.bbclass calls mender-artifact write module-image without -s. The stock mender image type adds -s ${DEPLOY_DIR_IMAGE}/mender-state-scripts when that directory exists. With native, state scripts from other recipes (via mender-state-scripts.bbclass) never reach the artifact, and the build doesn’t warn. Is that intentional? -
Other artifact settings are ignored.
MENDER_ARTIFACT_EXTRA_ARGS, MENDER_ARTIFACT_PROVIDES, MENDER_ARTIFACT_PROVIDES_GROUP, MENDER_ARTIFACT_DEPENDS, MENDER_ARTIFACT_NAME_DEPENDS, the per-module rootfs-image.update-module.* provides and the slot-size check from mender-artifactimg.bbclass are not applied, so the artifact differs from classic’s without a warning. The artifact also lacks rootfs-image.checksum, which a rootfs-image artifact provides automatically and which tooling uses for inventory and delta selection. Reusing the stock class’s argument handling would close most of this. -
Delta updates.
mender-binary-delta-generator 1.6.0 rejects native artifacts: “A delta can only be generated between two rootfs Artifacts. Please make sure both first and second Artifacts are of type ‘rootfs-image’.” From the strings in the on-device module (not from running it), it also appears to rely on fw_printenv mender_boot_part, upgrade_available and RootfsPartA/B from mender.conf, which native deliberately removes. So native can’t do delta updates as things stand. Is delta support for the native scheme planned?
Thanks for all your work