mirror of
https://github.com/xcat2/confluent.git
synced 2026-08-03 16:07:00 +00:00
547ecf16d4
Nothing unwound the loop device and dm-crypt mapping when the copy loop raised, so interrupting a pack stranded both, still holding the profile's rootimg.sfs. Tear them down from a finally. The retry loop moves with them, so also honour its tries counter, as unpack_image already does; spinning forever inside a finally would hang the interrupt it is meant to clean up after. A bounded retry loop can also give up, and the detach that follows would then fail with EBUSY and, raising from a finally, replace the exception that brought us here. Warn and leave both in place instead.