Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acc31cee authored by Bowgo Tsai's avatar Bowgo Tsai
Browse files

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
parent 2bbbd06a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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