aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-07-20 10:05:03 -0700
committerSaul Wold <sgw@linux.intel.com>2012-07-25 00:11:37 -0700
commit138c3c26830e48a56ca7cb3e5feca324d13ec89c (patch)
tree519a034872bdccd3d6f18c8334c9c10796fb762b /meta/recipes-core/initscripts/initscripts-1.0
parent4148bc80c008d25c8a536c7c7dfdeac1669a6662 (diff)
downloadopenembedded-core-contrib-138c3c26830e48a56ca7cb3e5feca324d13ec89c.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. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh4
1 files changed, 2 insertions, 2 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() {
[ -e "$1" ] && {
[ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping."
} || {
- eval $EXEC &
+ eval $EXEC
}
}
@@ -153,7 +153,7 @@ apply_cfgfile() {
create_file "${TNAME}" &
;;
"d") [ "${VERBOSE}" != "no" ] && echo "Creating directory -${TNAME}-."
- mk_dir "${TNAME}" &
+ mk_dir "${TNAME}"
# Add check to see if there's an entry in fstab to mount.
;;
*) [ "${VERBOSE}" != "no" ] && echo "Invalid type -${TTYPE}-."