From acc31cee1bd5fe270a22f993fdff79d83f827658 Mon Sep 17 00:00:00 2001 From: Bowgo Tsai Date: Fri, 29 Jun 2018 10:15:34 +0800 Subject: [PATCH] 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 --- init/init.cpp | 3 +++ 1 file changed, 3 insertions(+) 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