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

mender-artifact snapshot requires sudo on the device

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      0

      Description

      When creating an Artifact using mender snapshot command fails with the following error if sudo does not exist on the device.

      sh: sudo: command not found
      

      This would be typical for Yocto built images, where you necessarily do not have sudo installed and the only user by default is root.

      Acceptance criteria:

      • Do not attempt to run sudo if snapshot is performed as root.
      • Update acceptance test to assess sudo is not invoked on root user.

        Attachments

          Activity

            People

            • Assignee:
              merlin Peter Grzybowski
              Reporter:
              mirzak Mirza Krak
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel