From: <abe...@us...> - 2016-05-04 15:40:11
|
Revision: 7666 http://sourceforge.net/p/astlinux/code/7666 Author: abelbeck Date: 2016-05-04 15:40:08 +0000 (Wed, 04 May 2016) Log Message: ----------- astlinux-makeimage, some systems take a second or two before /mnt/runnix is not busy Modified Paths: -------------- branches/1.0/scripts/astlinux-makeimage Modified: branches/1.0/scripts/astlinux-makeimage =================================================================== --- branches/1.0/scripts/astlinux-makeimage 2016-05-03 17:39:27 UTC (rev 7665) +++ branches/1.0/scripts/astlinux-makeimage 2016-05-04 15:40:08 UTC (rev 7666) @@ -238,7 +238,17 @@ editConf ) -sudo umount /mnt/runnix +# Some systems take a second or two before /mnt/runnix is not busy +cnt=5 +while [ $cnt -gt 0 ]; do + cnt=$((cnt - 1)) + sleep 2 + if sudo umount /mnt/runnix; then + echo "/mnt/runnix is un-mounted" + break + fi +done + sudo rmdir /mnt/runnix sudo losetup -d ${LOOPD}1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |