summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMing Liu <ming.liu@windriver.com>2013-05-23 15:33:43 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 14:14:48 +0100
commitb08958bc22f67dff25390bd96a697a94915ed9bb (patch)
tree8a565ee6f98113dc8317ff6a4495d32c652a4c62 /meta
parent7bb6021c4c70b6abdb9d9a3e72d9447c872751a2 (diff)
downloadpoky-b08958bc22f67dff25390bd96a697a94915ed9bb.tar.gz
rm_work.bbclass: ignore failure for removing pseudo folder
When building over NFS2/3 server, removal of pseudo folders will fail in some cases for there are files in it still used by pseudo daemon, thus cause ".nfsXXXXX" files generated which can't be removed by clients. This will lead rm_work task fo fail. These failures could be safely ignored because ".nfsXXXXX" files would be automatically cleared by NFS server when no clients keep opening them. [YOCTO #4531] [ CQID: WIND00412051 ] (From OE-Core rev: 9742e866f545bc0d04aca697b541ed88f4e1764a) Signed-off-by: Ming Liu <ming.liu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/rm_work.bbclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index 1642af7936..f0f6d18249 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -30,15 +30,18 @@ do_rm_work () {
30 cd ${WORKDIR} 30 cd ${WORKDIR}
31 for dir in * 31 for dir in *
32 do 32 do
33 # Retain only logs and other files in temp. 33 # Retain only logs and other files in temp, safely ignore
34 if [ $dir != 'temp' ]; then 34 # failures of removing pseudo folers on NFS2/3 server.
35 if [ $dir = 'pseudo' ]; then
36 rm -rf $dir 2> /dev/null || true
37 elif [ $dir != 'temp' ]; then
35 rm -rf $dir 38 rm -rf $dir
36 fi 39 fi
37 done 40 done
38 41
39 # Need to add pseudo back or subsqeuent work in this workdir 42 # Need to add pseudo back or subsqeuent work in this workdir
40 # might fail since setscene may not rerun to recreate it 43 # might fail since setscene may not rerun to recreate it
41 mkdir ${WORKDIR}/pseudo/ 44 mkdir -p ${WORKDIR}/pseudo/
42 45
43 # Change normal stamps into setscene stamps as they better reflect the 46 # Change normal stamps into setscene stamps as they better reflect the
44 # fact WORKDIR is now empty 47 # fact WORKDIR is now empty