diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-07-27 22:21:57 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-16 11:14:14 +0100 |
commit | 4bd419f95868d5b8707a45cee5f6c5c6a840a65b (patch) | |
tree | 4f27a992c85e5139aa3a548f5002130cdfa9abf3 /meta/recipes-core/initscripts | |
parent | 7c2c36a97bab46c73a3a1fb743ad3ec67a4c072e (diff) | |
download | openembedded-core-4bd419f95868d5b8707a45cee5f6c5c6a840a65b.tar.gz openembedded-core-4bd419f95868d5b8707a45cee5f6c5c6a840a65b.tar.bz2 openembedded-core-4bd419f95868d5b8707a45cee5f6c5c6a840a65b.zip |
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]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initscripts')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh | 6 |
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() { # but these failures should not be logged to make sure the do_rootfs # process doesn't fail. This does no harm, as this script will # run on target to set up the correct files and directories. - eval $EXEC > /dev/null 2>&1 & + eval $EXEC > /dev/null 2>&1 fi } } @@ -87,7 +87,7 @@ link_file() { else # For the same reason with create_file(), failures should # not be logged. - eval $EXEC > /dev/null 2>&1 & + eval $EXEC > /dev/null 2>&1 fi } @@ -156,7 +156,7 @@ apply_cfgfile() { [ "${TTYPE}" = "l" ] && { TSOURCE="$TLTARGET" [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-." - link_file "${TSOURCE}" "${TNAME}" & + link_file "${TSOURCE}" "${TNAME}" continue } |