From 0d2cc22efc66e919848fe0b6559e5b59b08e0afa Mon Sep 17 00:00:00 2001 From: "Cody A.W. Somerville" Date: Thu, 21 Jul 2011 17:00:54 +0200 Subject: Adding function for more resilient detachment of loopback devices. --- scripts/build/lb_binary_usb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'scripts/build/lb_binary_usb') diff --git a/scripts/build/lb_binary_usb b/scripts/build/lb_binary_usb index e6c29ea7f..96feee499 100755 --- a/scripts/build/lb_binary_usb +++ b/scripts/build/lb_binary_usb @@ -164,8 +164,7 @@ case "${LB_BUILD_WITH_CHROOT}" in ;; esac -sleep 1 -${LB_LOSETUP} -d ${FREELO} +Lodetach ${FREELO} FREELO="$(${LB_LOSETUP} -f)" Losetup $FREELO chroot/binary.img 1 @@ -254,8 +253,7 @@ then esac fi -sleep 1 -${LB_LOSETUP} -d ${FREELO} +Lodetach ${FREELO} echo "!!! The above error/warning messages can be ignored !!!" @@ -274,8 +272,7 @@ case "${LB_BUILD_WITH_CHROOT}" in ;; esac -sleep 1 -${LB_LOSETUP} -d ${FREELO} +Lodetach ${FREELO} if [ -n "${MAKEDEV}" ] then -- cgit v1.2.3