cleanup() in the image installer declares list defaults (mounts, remove_items) and appends to them. Entries from one call leak into later calls in the same process.
Fix: default to None and copy the arguments inside the function.
cleanup() in the image installer declares list defaults (mounts, remove_items) and appends to them. Entries from one call leak into later calls in the same process.
Fix: default to None and copy the arguments inside the function.