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
This commit is contained in:
parent
4c9c516d20
commit
c97e1cb39d
|
@ -30,8 +30,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
|
||||
|
||||
|
@ -59,14 +58,8 @@ on init
|
|||
chmod 0664 /sys/fs/cgroup/stune/tasks
|
||||
chmod 0664 /sys/fs/cgroup/stune/foreground/tasks
|
||||
|
||||
mkdir /system
|
||||
mkdir /data 0771 system system
|
||||
mkdir /cache 0770 system cache
|
||||
mkdir /config 0500 root root
|
||||
|
||||
# Mount staging areas for devices managed by vold
|
||||
# See storage config details at http://source.android.com/tech/storage/
|
||||
mkdir /mnt 0755 root system
|
||||
mount tmpfs tmpfs /mnt mode=0755,uid=0,gid=1000
|
||||
restorecon_recursive /mnt
|
||||
|
||||
|
@ -80,7 +73,6 @@ on init
|
|||
mkdir /mnt/expand 0771 system system
|
||||
|
||||
# Storage views to support runtime permissions
|
||||
mkdir /storage 0755 root root
|
||||
mkdir /mnt/runtime 0700 root root
|
||||
mkdir /mnt/runtime/default 0755 root root
|
||||
mkdir /mnt/runtime/default/self 0755 root root
|
||||
|
|
Loading…
Reference in New Issue