system/core
Revision | 8c9998faaa7f85aade55e67ff726add4ef789977 (tree) |
---|---|
Time | 2011-08-04 17:31:47 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init.rc: use relative path for symlink
Usually it's better to use relative path for symlink. For example,
to use Android in a chroot environment, the absolute symlink will
fail outside the chroot environment. Using relative path guarantees
the link will work both inside and outside chroot.
Change-Id: I2f654a05189b9a666aed1fc7bdfb5a50357aff78
@@ -20,12 +20,12 @@ loglevel 3 | ||
20 | 20 | export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar |
21 | 21 | |
22 | 22 | # Backward compatibility |
23 | - symlink /system/etc /etc | |
24 | - symlink /sys/kernel/debug /d | |
23 | + symlink system/etc /etc | |
24 | + symlink sys/kernel/debug /d | |
25 | 25 | |
26 | 26 | # Right now vendor lives on the same filesystem as system, |
27 | 27 | # but someday that may change. |
28 | - symlink /system/vendor /vendor | |
28 | + symlink system/vendor /vendor | |
29 | 29 | |
30 | 30 | # create mountpoints |
31 | 31 | mkdir /mnt 0775 root system |
@@ -37,7 +37,7 @@ loglevel 3 | ||
37 | 37 | mkdir /acct/uid |
38 | 38 | |
39 | 39 | # Backwards Compat - XXX: Going away in G* |
40 | - symlink /mnt/sdcard /sdcard | |
40 | + symlink mnt/sdcard /sdcard | |
41 | 41 | |
42 | 42 | mkdir /system |
43 | 43 | mkdir /data 0771 system system |