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

mender-convert: docker: unique work_dirs contents are not cleaned up

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Blocker
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Environment:
      using docker and docker-mender-convert script on master branch
    • Days in progress:
      0

      Description

      A change came in that creates unique work directories, however the contents do not get cleaning up as part of the docker run, meaning that there's files in that directory that require sudo to clean up at the end of a build by the user or CI server (they may not have sudo permissions).

      If using docker we shouldn't leave anything in work dirs that would need special permissions to clean up after the docker mender-convert process has completed.

       

      https://github.com/mendersoftware/mender-convert/commit/be1099b3e917059ca00f644e31a9ab549e01694b#diff-cea3ce0d30bc1c1194d5e895247884c154ec5a08b60d0dc38783e1f3451f88e8R29

      work.sLDC/
      ├── deb-packages
      │   └── mender-client_2.5.0-1_amd64.deb
      └── grub-mender-grubenv-aa7e8f8c76c6aca6dca1820aaa42dc2cbf9762a1
          ├── 01_console_bootargs_grub.cfg
          ├── 02_root_bootargs_grub.cfg
          ├── 05_mender_setup_grub.cfg
          ├── 06_systemd_machine_id_grub.cfg
          ├── 10_bootargs_grub.cfg
          ├── 11_bootargs_grub.cfg
          ├── 90_mender_boot_grub.cfg
          ├── 95_mender_try_to_recover_grub.cfg
          ├── 99_mender_end_of_grub.cfg
          ├── blank_grubenv
          ├── fw_printenv
          ├── grub-efi
          │   ├── docker-create-grub-efi-binaries
          │   ├── Dockerfile.aarch64
          │   ├── Dockerfile.arm
          │   ├── Dockerfile.x86-64
          │   ├── grub.inc
          │   └── prepare-output-folder-for-upload
          ├── LICENSE
          ├── LIC_FILES_CHKSUM.sha256
          ├── make-env-and-lock-files
          ├── Makefile
          ├── mender_grub.cfg
          ├── mender_grubenv
          │   ├── env
          │   ├── lock
          │   └── lock.sha256sum
          ├── mender_grubenv.config
          ├── mender_grubenv_defines
          ├── mender_grubenv_defines.example
          └── README.md
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dell.green@ideaworks.co.uk Dell Green
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel