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

"mender-artifact sign" fails when /tmp and artifact are on different partitions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: (None)
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The mender-artifact "sign" command fails with "invalid cross-device link" error when the system's /tmp directory is located on a different partition than the output artifact. Example from my system:

      $ mender-artifact sign input.mender -k private.key -o /home/don/output.mender
      Can not store signed artifact: rename /tmp/mender-artifact160656231 /home/don/output.mender: invalid cross-device link

      On my system, /home is mounted on /dev/sdb3, but / (and therefore /tmp) is mounted on /dev/sdb2:

      $ lsblk /dev/sdb

      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      sdb 8:16 0 931.5G 0 disk
      ├─sdb1 8:17 0 512M 0 part /boot/efi
      ├─sdb2 8:18 0 46.6G 0 part /
      ├─sdb3 8:19 0 856.8G 0 part /home
      └─sdb4 8:20 0 7.5G 0 part [SWAP]

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              don_cross Don Cross
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support