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

Artifact modification step in install guide fails 4 out of 5 times

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.0
    • Labels:
    • Backlog:
      no

      Description

      It looks like the install steps do not work 4 out of 5 times, specifically this line

      mender-artifact cat <imgname>.sdimg:/etc/hosts | sed "\$a ${IP_OF_MENDER_SERVER_FROM_DEVICE} docker.mender.io s3.docker.mender.io" | mender-artifact cp <imgname>.sdimg:/etc/hosts
      

      I think the problem is not in mender-artifact, but rather that this command style is inherently unsafe: It is reading from, and writing into, the same file at the same time. It should probably be reworked to a style that uses a temporary file and terminates the command in between (it can still be a oneliner, just with ;).

        Attachments

          Release management

            Activity

              People

              Assignee:
              a10040 Kristian Amlie
              Reporter:
              a10040 Kristian Amlie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: