umount with -f option 09/316309/2
authorwangbiao <biao716.wang@samsung.com>
Mon, 19 Aug 2024 07:54:30 +0000 (16:54 +0900)
committerwangbiao <biao716.wang@samsung.com>
Mon, 19 Aug 2024 07:55:45 +0000 (16:55 +0900)
Change-Id: Ia1f17e5595ab0ad8a3b1ce7edf319b040cbdbb20
Signed-off-by: wangbiao <biao716.wang@samsung.com>
common_functions

index 4168b4402502dbee41f8f7a0c2492047dbd5854a..2d537b2a22656c2a3cf8dce725ff9d78bc76dbcb 100755 (executable)
@@ -158,7 +158,7 @@ buildroot_umount() {
     # XXX: use stat -f /dev/pts/ -c %T  to check whether it's mounted and not suppress errors?
     local LOOP_CNT=1
     while [ $LOOP_CNT -le 20 ] ; do
-        umount -n "$BUILD_ROOT/$d" 2>/dev/null
+        umount -n -l -f "$BUILD_ROOT/$d" 2>/dev/null
         if test $? -ne 0; then
             break
         fi