--- trunk/initscripts/busybox/rc/rc 2012/06/26 16:42:54 1832 +++ trunk/initscripts/busybox/rc/rc 2012/08/22 17:55:09 1890 @@ -127,6 +127,32 @@ rc_print "Mounting tmpfs at ${svcdir} ..." mount -n -t tmpfs tmpfs "${svcdir}" -o rw,mode=0644,size="${svcsize}"k evaluate_retval + + ## /run /tmp /var/lock + for i in /run /tmp /var/lock + do + if [ -d ${i} ] + then + rc_print "Mounting tmpfs at ${i} ..." + mount -n -t tmpfs tmpfs ${i} -o rw,nosuid,nodev,relatime + evaluate_retval + fi + done + # extra check for /var/lock + if [ -L /var/lock ] + then + mkdir -p /run/lock + rc_print "Mounting tmpfs at /run/lock ..." + mount -n -t tmpfs tmpfs /run/lock -o rw,nosuid,nodev,relatime + evaluate_retval + fi + # extra check if /run and /var/run are directories + if [ -d /run ] && [ -d /var/run ] + then + rc_print "Mounting tmpfs at /var/run ..." + mount -n -o bind /run /var/run + evaluate_retval + fi fi if [[ ${runlevel} = shutdown ]] || [[ ${runlevel} = reboot ]]