initscripts: let populate-volatile.sh create the /tmp link
authorChen Qi <Qi.Chen@windriver.com>
Thu, 24 Jan 2013 07:28:45 +0000 (15:28 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2013 09:37:27 +0000 (09:37 +0000)
commit9d51aafd77be0cdb29d9af8b080b9599f8569f2a
treec1adf9f0e3073aeb5a9d8c8412abad380073f19e
parent0c65a0d3091c989de7f8a4464a54f6f6be895478
initscripts: let populate-volatile.sh create the /tmp link

Previously, the /tmp link (/tmp -> /var/tmp) was created by the
bootmisc.sh script. So in case of a read-only rootfs, this symlink
would not be created correctly.

The populate-volatile.sh script is intended to handle all directories
and files related to volatile storage, so we should let it create
the /tmp link.

In addition, because of the improments of populate-volatile.sh, the data
loss problem of bug#3404 is also resolved by this patch.

[YOCTO #3406]
[YOCTO #3404]

(From OE-Core rev: 12c4acd7ac5a27cf3676065b60f1c8395c96854c)

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>
meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
meta/recipes-core/initscripts/initscripts-1.0/volatiles