[SCM] live-build branch, debian-old-1.0, updated. 237cfb4c29df20487fc958b54fc2c9f462a15a25

Daniel Baumann daniel at debian.org
Tue Oct 4 05:52:47 UTC 2011


The following commit has been merged in the debian-old-1.0 branch:
commit 237cfb4c29df20487fc958b54fc2c9f462a15a25
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 1b1f61f..7875cb1 100755
--- a/functions/losetup.sh
+++ b/functions/losetup.sh
@@ -15,6 +15,8 @@ Losetup ()
 
 	${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}"
 	FDISK_OUT="$(${LH_FDISK} -l -u ${DEVICE} 2>&1)"
+
+	sleep 1
 	${LH_ROOT_COMMAND} ${LH_LOSETUP} -d "${DEVICE}"
 
 	LOOPDEVICE="$(echo ${DEVICE}p${PARTITION})"

-- 
live-build



More information about the debian-live-changes mailing list