From: wangbiao Date: Mon, 19 Aug 2024 07:54:30 +0000 (+0900) Subject: umount with -f option X-Git-Tag: accepted/tools/devbase/tools/20250527.103727~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F316309%2F2;p=tools%2Fbuild.git umount with -f option Change-Id: Ia1f17e5595ab0ad8a3b1ce7edf319b040cbdbb20 Signed-off-by: wangbiao --- diff --git a/common_functions b/common_functions index 4168b44..2d537b2 100755 --- a/common_functions +++ b/common_functions @@ -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