From: Nolen Johnson Date: Sun, 6 Oct 2024 15:44:43 +0000 (-0400) Subject: wade: Mount factory partition in init scripts X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd5ecf769d282cf2cef13cdc357eede7144c56b7;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_askey_wade.git wade: Mount factory partition in init scripts Change-Id: I3db4f2d3619fcb93aa586c8cbe984580ee17b3e7 (cherry picked from commit ebac534cdf4a59763b764add393380d2cefeac0c) --- diff --git a/device.mk b/device.mk index 5ca28d1..7e45ad7 100644 --- a/device.mk +++ b/device.mk @@ -19,7 +19,8 @@ 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.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 \ ## Wi-Fi firmware include kernel/amlogic/kernel-modules/dhd-driver/firmware/wifi/wifi.mk 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