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

mender-artifact: support cp specifying only the directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      mender-artifact cp tries to imitate the cp command. Thus, as a user, I expect that mender-artifact cp my-file:/dir/ should work by copying the local file into /dir/my-file.

      Instead, it just silently fails to copy it and returns success:

      $ cat lluis-file.txt 
      hola
      $ ./mender-artifact cp lluis-file.txt cool-artifact.mender:/etc/
      $ echo $?
      0
      $ ./mender-artifact cat cool-artifact.mender:/etc/lluis-file.txt
      failed to copy from: cool-artifact.mender:/etc/lluis-file.txt to stdout: err: extFile: ReadError: debugfsCopyFile failed: file /etc/lluis-file.txt not found in image
      $ ./mender-artifact cp lluis-file.txt cool-artifact.mender:/etc/lluis-file.txt
      $ ./mender-artifact cat cool-artifact.mender:/etc/lluis-file.txt
      hola
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lluis LluĂ­s Campos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support