From db5847dd411f12b8b96b9bee624e9be30b504653 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Thu, 24 Jan 2013 15:28:45 +0800 Subject: 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh') diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh index 4f76cb4b28..3b5a47fcdd 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh @@ -54,14 +54,7 @@ fi # # This is as good a place as any for a sanity check -# /tmp should be a symlink to /var/tmp to cut down on the number -# of mounted ramdisks. -if test ! -L /tmp && test -d /var/tmp -then - rm -rf /tmp - ln -sf /var/tmp /tmp -fi - +# # Set the system clock from hardware clock # If the timestamp is more recent than the current time, # use the timestamp instead. -- cgit v1.2.3-54-g00ecf