summaryrefslogtreecommitdiffstats
path: root/init/init.cpp
diff options
context:
space:
mode:
authorBowgo Tsai <bowgotsai@google.com>2018-06-29 10:15:34 +0800
committerBowgo Tsai <bowgotsai@google.com>2018-06-29 10:36:03 +0800
commitacc31cee1bd5fe270a22f993fdff79d83f827658 (patch)
tree5baf8f578458a6965447c5518ee587d1a9d3c453 /init/init.cpp
parent2bbbd06a8a4a104f4f0ca86057a15bae828dc997 (diff)
downloadsystem_core-acc31cee1bd5fe270a22f993fdff79d83f827658.tar.gz
system_core-acc31cee1bd5fe270a22f993fdff79d83f827658.tar.bz2
system_core-acc31cee1bd5fe270a22f993fdff79d83f827658.zip
Add /mnt/product rw mount point for product partitions.
1. init creates /mnt/product used to mount product-specific rw partitions. 2. If a device tree fstab entry for early mount specifies a mount point under /mnt/product e.g. /mnt/product/foo, init will create /mnt/product/foo mount point. Bug: 110808288 Test: change dt fstab entry to mount /mnt/product/foo; mount point is created correctly, and partition is mounted in early mount. Change-Id: I321e314992abe1084fd67a382c205f5c0c92bf3d
Diffstat (limited to 'init/init.cpp')
-rw-r--r--init/init.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init.cpp b/init/init.cpp
index 77c4fc49e..686cd6ed9 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -647,6 +647,9 @@ int main(int argc, char** argv) {
// /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.
CHECKCALL(mkdir("/mnt/vendor", 0755));
+ // /mnt/product is used to mount product-specific partitions that can not be
+ // part of the product partition, e.g. because they are mounted read-write.
+ CHECKCALL(mkdir("/mnt/product", 0755));
#undef CHECKCALL