From: Nolen Johnson Date: Sun, 6 Oct 2024 15:52:55 +0000 (-0400) Subject: sabrina: Mount factory partition in init scripts X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63673009f6e7a9cf6919cb9bfa45779783598e77;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_google_sabrina.git sabrina: Mount factory partition in init scripts Change-Id: I3db4f2d3619fcb93aa586c8cbe984580ee17b3e7 (cherry picked from commit dc31682e22553d647b12605c55166ebfc1ad3538) --- diff --git a/device.mk b/device.mk index ec74034..85ff86d 100644 --- a/device.mk +++ b/device.mk @@ -15,6 +15,7 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/init-files/tee_key_inject.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/tee_key_inject.rc \ $(LOCAL_PATH)/init-files/init.amlogic.sku.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.sku.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 \ $(LOCAL_PATH)/init-files/init.recovery.sabrina.rc:recovery/root/init.recovery.sabrina.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