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
This commit is contained in:
parent
2bbbd06a8a
commit
acc31cee1b
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue