diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-04-17 19:16:55 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-04-17 19:16:55 +0000 |
| commit | b35c019d5c8a8dde9bc83f5edd8d579198263a35 (patch) | |
| tree | 3418725a0ff72d9b5b6858a2cd7732d7ef756f1e /init | |
| parent | b3b1a5eacf9f7634bd2e366f0a17698b15366493 (diff) | |
| parent | b51147566461d411ad452df81d54dc800c554e06 (diff) | |
| download | core-b35c019d5c8a8dde9bc83f5edd8d579198263a35.tar.gz core-b35c019d5c8a8dde9bc83f5edd8d579198263a35.tar.bz2 core-b35c019d5c8a8dde9bc83f5edd8d579198263a35.zip | |
Merge "Add /mnt/vendor rw mount point for vendor partitions." into pi-dev
Diffstat (limited to 'init')
| -rw-r--r-- | init/init.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/init/init.cpp b/init/init.cpp index efb9c1db3..4fe115e92 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -595,6 +595,14 @@ int main(int argc, char** argv) { mknod("/dev/random", S_IFCHR | 0666, makedev(1, 8)); mknod("/dev/urandom", S_IFCHR | 0666, makedev(1, 9)); + // Mount staging areas for devices managed by vold + // See storage config details at http://source.android.com/devices/storage/ + mount("tmpfs", "/mnt", "tmpfs", MS_NOEXEC | MS_NOSUID | MS_NODEV, + "mode=0755,uid=0,gid=1000"); + // /mnt/vendor is used to mount vendor-specific partitions that can not be + // part of the vendor partition, e.g. because they are mounted read-write. + mkdir("/mnt/vendor", 0755); + // Now that tmpfs is mounted on /dev and we have /dev/kmsg, we can actually // talk to the outside world... InitKernelLogging(argv); |
