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

mender-artifact: Implement inclusion and extraction API for scripts

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Labels:

      Description

      Acceptance criteria:

      • There must be an API that allows you to:
        • Point to files (not folders, see below) of all the types listed in MEN-1174, which will be included in the artifact
        • Return a listing of contained scripts
        • Extract each of those files from the artifact
        • The library should verify that the name of the script correspond to a valid state and event
        • The library should verify that no two scripts in the same state/event group have the same two leading digits.

      We should not allow folders to be specified because this can lead to dangerous situations if for example the folder has accumulated a temporary file by coincidence. This file will run on the updated device.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10053 Marcin Pasinski
                Reporter:
                a10040 Kristian Amlie
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel