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

Using mender-partuuid causes mender-growfs-data to resize filesystem on bogus storage device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Story Points:
      5
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      When using the mender-partuuid feature, MENDER_STORAGE_DEVICE mustn't be used and Mender also warns about doing that: https://github.com/mendersoftware/meta-mender/blob/f1c44f1a1a7034debae92fd90f1220106526ef71/meta-mender-core/classes/mender-setup.bbclass#L331
      However, the mender-growfs-data feature still relies on MENDER_STORAGE_DEVICE exclusively: https://github.com/mendersoftware/meta-mender/blob/f1c44f1a1a7034debae92fd90f1220106526ef71/meta-mender-core/recipes-mender/mender-client/files/mender-client-resize-data-part.sh.in#L7

      Currently, this has the effect that our SSD-based device running Yocto/Mender on /dev/sda tries to resize a partition on the bogus storage device /dev/mmcblk0 on every boot.
      This may turn into a real problem once an SD card is inserted into the slot and it is manipulated for no reason.

      A proper fix would probably determine the underlying storage device from the currently mounted root partition.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ColinFinck Colin Finck
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: