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

This commit is contained in:
Daniel Baumann 2009-11-30 13:50:12 +01:00
parent e393e7d27b
commit f749cf3683
2 changed files with 4 additions and 0 deletions

View File

@ -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 !!!"

View File

@ -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 !!!"