summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBowgo Tsai2018-06-28 21:15:34 -0500
committerBowgo Tsai2018-06-28 21:36:03 -0500
commitacc31cee1bd5fe270a22f993fdff79d83f827658 (patch)
tree5baf8f578458a6965447c5518ee587d1a9d3c453
parent2bbbd06a8a4a104f4f0ca86057a15bae828dc997 (diff)
downloadplatform-system-core-acc31cee1bd5fe270a22f993fdff79d83f827658.tar.gz
platform-system-core-acc31cee1bd5fe270a22f993fdff79d83f827658.tar.xz
platform-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
-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) {
647 // /mnt/vendor is used to mount vendor-specific partitions that can not be 647 // /mnt/vendor is used to mount vendor-specific partitions that can not be
648 // part of the vendor partition, e.g. because they are mounted read-write. 648 // part of the vendor partition, e.g. because they are mounted read-write.
649 CHECKCALL(mkdir("/mnt/vendor", 0755)); 649 CHECKCALL(mkdir("/mnt/vendor", 0755));
650 // /mnt/product is used to mount product-specific partitions that can not be
651 // part of the product partition, e.g. because they are mounted read-write.
652 CHECKCALL(mkdir("/mnt/product", 0755));
650 653
651#undef CHECKCALL 654#undef CHECKCALL
652 655