aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-01-14 09:50:35 -0800
committerDoug Zongker <dougz@google.com>2014-01-14 09:50:35 -0800
commit075ef327d494ea1ce07eb038fcc367fb78b14500 (patch)
tree69baf13920244c540423607869ee9f15f2d49d19 /etc
parentfc729512375c4f0d351f6f67f0d7f500ea1b9233 (diff)
downloadbootable_recovery-075ef327d494ea1ce07eb038fcc367fb78b14500.zip
bootable_recovery-075ef327d494ea1ce07eb038fcc367fb78b14500.tar.gz
bootable_recovery-075ef327d494ea1ce07eb038fcc367fb78b14500.tar.bz2
correctly mount tmpfs as /tmp in recovery
The syntax of init's mount command changed in April 2008 but recovery's init.rc was never updated, so recovery's /tmp has been on the root fs all this time. Fix. Also add /system/bin to the PATH in recovery, which is handy for debugging. Change-Id: I39f7ae435a8ce3bad691e4b7c307db0bd8de1302
Diffstat (limited to 'etc')
-rw-r--r--etc/init.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 5f9ce80..8d49f24 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -12,7 +12,7 @@ on early-init
start healthd
on init
- export PATH /sbin
+ export PATH /sbin:/system/bin
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard
@@ -23,7 +23,7 @@ on init
mkdir /system
mkdir /data
mkdir /cache
- mount /tmp /tmp tmpfs
+ mount tmpfs tmpfs /tmp
chown root shell /tmp
chmod 0775 /tmp