Commit 5542415e authored by Michael Shigorin's avatar Michael Shigorin

tar2fs: wait a bit

Looks like there's a race condition somewhere: this script will fail to clean up after itself when considerable background load is inflicted upon the host it's running on (e.g. LA ~16 on a 8-core, single-disk system). Note that this commit is NOT enough to win that race but just a step in the right direction...
parent e238973c
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment