Verified; this works as expected:
kpartx -av adds a loop device node and mounts the image, and sets up the partitions. kpartx -dv deletes the partition maps and removed the loop device node.
Verified; this works as expected:
kpartx -av adds a loop device node and mounts the image, and sets up the partitions.
kpartx -dv deletes the partition maps and removed the loop device node.