summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-12-07 16:55:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-12-07 16:55:25 +0000
commitdcc0f8f76b6f8bc4ce9e747e0798b6791c4ebed4 (patch)
tree6a4fbad03be15afcc04dcb3d6fe09c1d0a37b4f0 /rootdir
parentc431c43f8d539343ade4c8e9e906a532b915c71d (diff)
parentff1ef9f2b10d98131ea8945c642dd8388d9b0250 (diff)
downloadsystem_core-dcc0f8f76b6f8bc4ce9e747e0798b6791c4ebed4.tar.gz
system_core-dcc0f8f76b6f8bc4ce9e747e0798b6791c4ebed4.tar.bz2
system_core-dcc0f8f76b6f8bc4ce9e747e0798b6791c4ebed4.zip
Merge "Add a /bin symlink for convenience."
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/Android.mk1
-rw-r--r--rootdir/init.rc4
2 files changed, 4 insertions, 1 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
index 560092e86..6daeb75d1 100644
--- a/rootdir/Android.mk
+++ b/rootdir/Android.mk
@@ -142,6 +142,7 @@ endif
# create some directories (some are mount points) and symlinks
LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \
sbin dev proc sys system data oem acct config storage mnt $(BOARD_ROOT_EXTRA_FOLDERS)); \
+ ln -sf /system/bin $(TARGET_ROOT_OUT)/bin; \
ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \
ln -sf /data/user_de/0/com.android.shell/files/bugreports $(TARGET_ROOT_OUT)/bugreports; \
ln -sf /sys/kernel/debug $(TARGET_ROOT_OUT)/d; \
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 51a8d2b21..5fa77d8d9 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -48,8 +48,10 @@ on init
copy /proc/cmdline /dev/urandom
copy /default.prop /dev/urandom
- # Backward compatibility.
+ symlink /system/bin /bin
symlink /system/etc /etc
+
+ # Backward compatibility.
symlink /sys/kernel/debug /d
# Link /vendor to /system/vendor for devices without a vendor partition.