Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2970

Mender-artifact needs global options support in mender-artifactimg.bbclass

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Rejected
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Environment:
      Yocto sumo, meta-mender
    • Days in progress:
      0

      Description

      Compression was added to mender-artifact which is available to yocto builds with the newer recipes added for it.

      In https://raw.githubusercontent.com/mendersoftware/meta-mender/master/meta-mender-core/classes/mender-artifactimg.bbclass

      There doesn’t seem to be any provision to set mender-artifact global options like compression. MENDER_ARTIFACT_EXTRA_ARGS adds command args and cannot be used for global options. We provide a MENDER_ARTIFACT_GLOBAL_ARGS variable to support change of compression in yocto builds.

      For example:

      from this:
       
      mender-artifact write rootfs-image \
      -n ${MENDER_ARTIFACT_NAME} \
      $extra_args \
      $image_flag ${IMGDEPLOYDIR}/${ARTIFACTIMG_NAME}.${ARTIFACTIMG_FSTYPE} \
      ${MENDER_ARTIFACT_EXTRA_ARGS} \
      -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.mender

      to

         mender-artifact ${MENDER_ARTIFACT_GLOBAL_ARGS} write rootfs-image \
      -n ${MENDER_ARTIFACT_NAME} \
      $extra_args \
      $image_flag ${IMGDEPLOYDIR}/${ARTIFACTIMG_NAME}.${ARTIFACTIMG_FSTYPE} \
      ${MENDER_ARTIFACT_EXTRA_ARGS} \
      -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.mender

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dell.green@ideaworks.co.uk Dell Green
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel