diff --git a/bin/tar2fs b/bin/tar2fs index 9c099f92..d9bce07d 100755 --- a/bin/tar2fs +++ b/bin/tar2fs @@ -129,7 +129,7 @@ exit_handler() { umount ${BOOTFS:+"$BOOTFS"} "$ROOTFS"{/dev,/proc,/sys,} if [ -n "$LOOPDEV" ]; then - kpartx -d "$LOOPDEV" + kpartx -d -s "$LOOPDEV" losetup --detach "$LOOPDEV" fi rm -r -- "$ROOTFS"