[SCM] live-build branch, debian-old-2.0, updated. 11840c8fc528512a0646406b66f5ea6f7a7b1408

Daniel Baumann daniel at debian.org
Sat Aug 27 18:48:04 UTC 2011


The following commit has been merged in the debian-old-2.0 branch:
commit 11840c8fc528512a0646406b66f5ea6f7a7b1408
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Aug 27 20:47:46 2011 +0200

    Sleeping for 1 second before after accessing the loop device in order to not fail when removing it right afterwards.

diff --git a/functions/losetup.sh b/functions/losetup.sh
index df7e2d2..4e4f2ff 100755
--- a/functions/losetup.sh
+++ b/functions/losetup.sh
@@ -16,6 +16,8 @@ Losetup ()
 
 	${LB_ROOT_COMMAND} ${LB_LOSETUP} "${DEVICE}" "${FILE}"
 	FDISK_OUT="$(${LB_FDISK} -l -u ${DEVICE} 2>&1)"
+
+	sleep 1
 	${LB_ROOT_COMMAND} ${LB_LOSETUP} -d "${DEVICE}"
 
 	LOOPDEVICE="$(echo ${DEVICE}p${PARTITION})"

-- 
live-build



More information about the debian-live-changes mailing list