diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-07-23 10:56:33 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-16 11:14:35 +0100 |
commit | 43c5b5f5348711ccccb0bf920bfcecfa925d6dc7 (patch) | |
tree | 3dabe873dda5f8c4cfbdf51e1c3b2b787bbc2f6b /meta | |
parent | 11660bc1c638a5b76c7d83010a61f1b59e9379e1 (diff) | |
download | poky-43c5b5f5348711ccccb0bf920bfcecfa925d6dc7.tar.gz |
populate-volatile.sh: use $ROOT_DIR/var/volatile/tmp as TMPDIR
It's possible that a 'No such directory' error occurs when doing
check_requirement in populate-volatile.sh at rootfs time. This is
because the $ROOT_DIR/var/tmp might be a dead link.
Use $ROOT_DIR/var/volatile/tmp as the TMPDIR instead to avoid this
error.
[YOCTO #4883]
[YOCTO #4103]
(From OE-Core rev: 7c2c36a97bab46c73a3a1fb743ad3ec67a4c072e)
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-x | meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh | 2 |
1 files changed, 1 insertions, 1 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 91c70efbbd..6b3830883b 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh | |||
@@ -19,7 +19,7 @@ ROOT_DIR=`echo $DIRNAME | sed -ne 's:/etc/.*::p'` | |||
19 | [ "$ROOTFS_READ_ONLY" = "yes" ] && VOLATILE_ENABLE_CACHE=no | 19 | [ "$ROOTFS_READ_ONLY" = "yes" ] && VOLATILE_ENABLE_CACHE=no |
20 | 20 | ||
21 | CFGDIR="${ROOT_DIR}/etc/default/volatiles" | 21 | CFGDIR="${ROOT_DIR}/etc/default/volatiles" |
22 | TMPROOT="${ROOT_DIR}/var/tmp" | 22 | TMPROOT="${ROOT_DIR}/var/volatile/tmp" |
23 | COREDEF="00_core" | 23 | COREDEF="00_core" |
24 | 24 | ||
25 | [ "${VERBOSE}" != "no" ] && echo "Populating volatile Filesystems." | 25 | [ "${VERBOSE}" != "no" ] && echo "Populating volatile Filesystems." |