summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-07-20 10:05:03 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-26 14:40:44 +0100
commit142ac1aba1376009adb538ca2115a8e52e11a301 (patch)
treea1db43bd475f61d76f40f546f10931d09e35107c /meta
parent0ffb02eec2beaea27ff0ec9d3d31b0a09e675a4c (diff)
downloadpoky-142ac1aba1376009adb538ca2115a8e52e11a301.tar.gz
initscripts: don't bg mk_dirs in populate-volatile
If a directory needs to be created to create something else in volatiles, there's no guarantees on ordering due to the backgrounding. We can't guarantee with certainty that the create directory commands are complete before the later ones run. This ensures that we wait for directory creations to complete before we proceed. Chris Hallinan hit an actual failure due to this back in March of last year. (From OE-Core rev: 138c3c26830e48a56ca7cb3e5feca324d13ec89c) Signed-off-by: Christopher Larson <chris_larson@mentor.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.sh4
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb2
2 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 4a99aff6a4..d2175d7a7c 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 @@ mk_dir() {
42 [ -e "$1" ] && { 42 [ -e "$1" ] && {
43 [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping." 43 [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping."
44 } || { 44 } || {
45 eval $EXEC & 45 eval $EXEC
46 } 46 }
47} 47}
48 48
@@ -153,7 +153,7 @@ apply_cfgfile() {
153 create_file "${TNAME}" & 153 create_file "${TNAME}" &
154 ;; 154 ;;
155 "d") [ "${VERBOSE}" != "no" ] && echo "Creating directory -${TNAME}-." 155 "d") [ "${VERBOSE}" != "no" ] && echo "Creating directory -${TNAME}-."
156 mk_dir "${TNAME}" & 156 mk_dir "${TNAME}"
157 # Add check to see if there's an entry in fstab to mount. 157 # Add check to see if there's an entry in fstab to mount.
158 ;; 158 ;;
159 *) [ "${VERBOSE}" != "no" ] && echo "Invalid type -${TTYPE}-." 159 *) [ "${VERBOSE}" != "no" ] && echo "Invalid type -${TTYPE}-."
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 1d80c55b28..b741b61f37 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
3SECTION = "base" 3SECTION = "base"
4LICENSE = "GPLv2" 4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 5LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
6PR = "r135" 6PR = "r136"
7 7
8INHIBIT_DEFAULT_DEPS = "1" 8INHIBIT_DEFAULT_DEPS = "1"
9 9