From d309561a8e7df73718c3faf47a2fee306801787e Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Sun, 6 Oct 2024 11:51:24 -0400 Subject: [PATCH] dopinder: Mount factory partition in init scripts Change-Id: I3db4f2d3619fcb93aa586c8cbe984580ee17b3e7 (cherry picked from commit a30f6b25354f6617f30769344c072bac71586d16) --- device.mk | 1 + init-files/init.amlogic.target.rc | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 init-files/init.amlogic.target.rc diff --git a/device.mk b/device.mk index 00edf87..ab46d7e 100644 --- a/device.mk +++ b/device.mk @@ -19,6 +19,7 @@ endif ## Init-Files PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/init-files/init.amlogic.wifi_buildin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.wifi_buildin.rc \ + $(LOCAL_PATH)/init-files/init.amlogic.target.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.target.rc \ $(LOCAL_PATH)/init-files/init.recovery.dopinder.rc:recovery/root/init.recovery.dopinder.rc ## Kernel Modules diff --git a/init-files/init.amlogic.target.rc b/init-files/init.amlogic.target.rc new file mode 100644 index 0000000..80e1ddd --- /dev/null +++ b/init-files/init.amlogic.target.rc @@ -0,0 +1,5 @@ +on fs + wait /dev/block/platform/ffe07000.emmc/factory + mkdir /mnt/vendor/factory 0770 system system + mount ext4 /dev/block/platform/ffe07000.emmc/by-name/factory /mnt/vendor/factory noatime nosuid nodev nodelalloc nomblk_io_submit + restorecon -R /mnt/vendor/factory -- 2.20.1