summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-07-27 22:21:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-16 11:14:35 +0100
commit0123eb924dbe1c74fe5397e1b3872b2622e32708 (patch)
treecfbc06f37508f0200168bd80768822f069b55a2a /meta
parent43c5b5f5348711ccccb0bf920bfcecfa925d6dc7 (diff)
downloadpoky-0123eb924dbe1c74fe5397e1b3872b2622e32708.tar.gz
populate-volatile.sh: don't spawn background process at rootfs time
If we're building a read-only rootfs, we'll get the following error now and then. tar: .: file changed as we read it The root cause is that we spawn background process at rootfs time. When the tar command is running, it's possible that files under rootfs are changed by background processes, thus this error. [YOCTO #4937] (From OE-Core rev: 4bd419f95868d5b8707a45cee5f6c5c6a840a65b) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh b/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh
index 6b3830883b..0ff0e1af7f 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh
@@ -42,7 +42,7 @@ create_file() {
42 # but these failures should not be logged to make sure the do_rootfs 42 # but these failures should not be logged to make sure the do_rootfs
43 # process doesn't fail. This does no harm, as this script will 43 # process doesn't fail. This does no harm, as this script will
44 # run on target to set up the correct files and directories. 44 # run on target to set up the correct files and directories.
45 eval $EXEC > /dev/null 2>&1 & 45 eval $EXEC > /dev/null 2>&1
46 fi 46 fi
47 } 47 }
48} 48}
@@ -87,7 +87,7 @@ link_file() {
87 else 87 else
88 # For the same reason with create_file(), failures should 88 # For the same reason with create_file(), failures should
89 # not be logged. 89 # not be logged.
90 eval $EXEC > /dev/null 2>&1 & 90 eval $EXEC > /dev/null 2>&1
91 fi 91 fi
92} 92}
93 93
@@ -156,7 +156,7 @@ apply_cfgfile() {
156 [ "${TTYPE}" = "l" ] && { 156 [ "${TTYPE}" = "l" ] && {
157 TSOURCE="$TLTARGET" 157 TSOURCE="$TLTARGET"
158 [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-." 158 [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-."
159 link_file "${TSOURCE}" "${TNAME}" & 159 link_file "${TSOURCE}" "${TNAME}"
160 continue 160 continue
161 } 161 }
162 162