• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

修订版8c9998faaa7f85aade55e67ff726add4ef789977 (tree)
时间2011-08-04 17:31:47
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

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

更改概述

差异

--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -20,12 +20,12 @@ loglevel 3
2020 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
2121
2222 # Backward compatibility
23- symlink /system/etc /etc
24- symlink /sys/kernel/debug /d
23+ symlink system/etc /etc
24+ symlink sys/kernel/debug /d
2525
2626 # Right now vendor lives on the same filesystem as system,
2727 # but someday that may change.
28- symlink /system/vendor /vendor
28+ symlink system/vendor /vendor
2929
3030 # create mountpoints
3131 mkdir /mnt 0775 root system
@@ -37,7 +37,7 @@ loglevel 3
3737 mkdir /acct/uid
3838
3939 # Backwards Compat - XXX: Going away in G*
40- symlink /mnt/sdcard /sdcard
40+ symlink mnt/sdcard /sdcard
4141
4242 mkdir /system
4343 mkdir /data 0771 system system