better loop handling with kpartx