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

Commit d8873942 authored by Paul Crowley's avatar Paul Crowley Committed by android-build-merger
Browse files

Add option to create metadata mount point am: fe305ab2

am: 36bd69f8

Change-Id: Ie79d296d867b5166e14b9c5ddf57ce06ec6c9276
parents bd2c26a8 36bd69f8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -93,6 +93,9 @@ ifdef BOARD_USES_PRODUCTIMAGE
else
  LOCAL_POST_INSTALL_CMD += ; ln -sf /system/product $(TARGET_ROOT_OUT)/product
endif
ifdef BOARD_USES_METADATA_PARTITION
  LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/metadata
endif

# For /odm partition.
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/odm
+4 −0
Original line number Diff line number Diff line
@@ -372,6 +372,10 @@ on post-fs
    # create the lost+found directories, so as to enforce our permissions
    mkdir /cache/lost+found 0770 root root

    restorecon_recursive /metadata
    mkdir /metadata/vold
    chmod 0700 /metadata/vold

on late-fs
    # Ensure that tracefs has the correct permissions.
    # This does not work correctly if it is called in post-fs.