Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openstack-debian-images
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenStackOpenStack
  • debian
  • openstack-debian-images
  • Merge requests
  • !2

Fix cleanup

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Juliane Holzt requested to merge jule/openstack-debian-images:patch-1 into debian/rocky Oct 13, 2018
  • Overview 1
  • Commits 4
  • Pipelines 0
  • Changes 1

The current code uses kpartx -d on the image file to remove the partition mapping. This does not work and can not work, as the same image could be mapped several times and kpartx would not know what "our" mapping is. Therefore kpartx has to be invoked with the loop-device as argument to remove the partition mappings and then losetup must be executed to get rid of the loopback device created by kpartx at the beginning.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: patch-1