[SCM] live-helper branch, debian, updated. debian/2.0_a2-1-2-g8cc1e3f

Daniel Baumann daniel at debian.org
Mon Nov 30 12:52:21 UTC 2009


The following commit has been merged in the debian branch:
commit 8cc1e3f5a22ebf885c27d7fe55d47562bf1a366b
Author: Daniel Baumann <daniel at debian.org>
Date:   Mon Nov 30 13:50:12 2009 +0100

    Adding a 'sleep 1' before removing the loopdevice when creating usb-hdd images.

diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index 997c24b..c5e0ef4 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -167,6 +167,7 @@ case "${LH_CHROOT_BUILD}" in
 		;;
 esac
 
+sleep 1
 ${LH_LOSETUP} -d ${FREELO}
 
 FREELO="$(${LH_LOSETUP} -f)"
@@ -256,6 +257,7 @@ then
 	esac
 fi
 
+sleep 1
 ${LH_LOSETUP} -d ${FREELO}
 
 echo "!!! The above error/warning messages can be ignored !!!"
diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd
index a8183db..1a88a60 100755
--- a/helpers/lh_source_usb-hdd
+++ b/helpers/lh_source_usb-hdd
@@ -93,6 +93,7 @@ Losetup $FREELO source.img 0
 Chroot chroot "parted -s ${FREELO} mklabel msdos" || true
 Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100%" || true
 Chroot chroot "parted -s ${FREELO} set 1 lba off" || true
+sleep 1
 ${LH_LOSETUP} -d ${FREELO}
 
 Losetup $FREELO source.img 1
@@ -121,6 +122,7 @@ ${LH_ROOT_COMMAND} mount ${FREELO} source.tmp
 cp -r source/* source.tmp
 ${LH_ROOT_COMMAND} umount source.tmp
 rmdir source.tmp
+sleep 1
 ${LH_LOSETUP} -d ${FREELO}
 Echo_warning "!!! The above error/warning messages can be ignored !!!"
 

-- 
live-helper



More information about the debian-live-changes mailing list