aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-01-24 15:28:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 09:35:05 +0000
commit12c4acd7ac5a27cf3676065b60f1c8395c96854c (patch)
treef61f3877705510e2120a2a08f2bd0907fe265ab6 /meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
parent0b4af5f3e6c92ae8194447b027202c1933f47dd9 (diff)
downloadopenembedded-core-contrib-12c4acd7ac5a27cf3676065b60f1c8395c96854c.tar.gz
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] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh9
1 files changed, 1 insertions, 8 deletions
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.