dopinder: Mount factory partition in init scripts
authorNolen Johnson <johnsonnolen@gmail.com>
Sun, 6 Oct 2024 15:51:24 +0000 (11:51 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Mon, 7 Oct 2024 00:41:23 +0000 (00:41 +0000)
Change-Id: I3db4f2d3619fcb93aa586c8cbe984580ee17b3e7

device.mk
init-files/init.amlogic.target.rc [new file with mode: 0644]

index 6235e1e4a503d9cee0dd598d3c0da20e7f7fcf31..a6595e0922d0efdc46225de1510855861583e914 100644 (file)
--- 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 (file)
index 0000000..80e1ddd
--- /dev/null
@@ -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