From 64dffd3975824512353244684c960845be8bdde2 Mon Sep 17 00:00:00 2001 From: Daniel Rosenberg Date: Wed, 8 Jul 2015 16:30:22 -0700 Subject: [PATCH] Remove creation of root directory folders Folders in the root directory are now created during the build, as we may be building without a ramdisk, and when we do that, the root directory will be read-only. With those changes, these mkdirs will never need to run. Change-Id: I49c63e8bfc71d28e3f938ed41f81d108359fa57a --- rootdir/init.rc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 72df0f53d..be5292a9e 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -19,9 +19,6 @@ on early-init start ueventd - # create mountpoints - mkdir /mnt 0775 root system - on init sysclktz 0 @@ -32,8 +29,7 @@ on init # Link /vendor to /system/vendor for devices without a vendor partition. symlink /system/vendor /vendor - # Create cgroup mount point for cpu accounting - mkdir /acct + # Mount cgroup mount point for cpu accounting mount cgroup none /acct cpuacct mkdir /acct/uid @@ -50,11 +46,6 @@ on init chown root system /sys/fs/cgroup/memory/sw/tasks chmod 0660 /sys/fs/cgroup/memory/sw/tasks - mkdir /system - mkdir /data 0771 system system - mkdir /cache 0770 system cache - mkdir /config 0500 root root - # See storage config details at http://source.android.com/tech/storage/ mkdir /mnt/shell 0700 shell shell mkdir /mnt/media_rw 0700 media_rw media_rw