sm6150-common: Configure zram from separate fstab

Change-Id: I3d093f06b08ad1cc049325d0136b60cab70c29d0
This commit is contained in:
Adithya R 2021-04-09 22:17:10 +05:30 committed by Arian
parent 2df667662f
commit b2d8bf6c26
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9
3 changed files with 11 additions and 3 deletions

4
rootdir/etc/fstab.zram Normal file
View File

@ -0,0 +1,4 @@
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/zram0 none swap defaults zramsize=1073741824

View File

@ -54,7 +54,7 @@ on init
write /sys/block/sde/queue/nr_requests 256
on fs
mount_all --early
mount_all --early /vendor/etc/fstab.qcom
restorecon_recursive /mnt/vendor/persist
mkdir /mnt/vendor/persist/data 0700 system system
@ -64,7 +64,7 @@ on fs
on late-fs
wait_for_prop hwservicemanager.ready true
exec_start wait_for_keymaster
mount_all --late
mount_all --late /vendor/etc/fstab.qcom
on post-fs-data
mkdir /data/vendor/nnhal 0700 system system
@ -97,7 +97,7 @@ on property:sys.boot_completed=1
write /proc/sys/vm/swappiness 100
# Enable ZRAM on boot_complete
swapon_all /vendor/etc/fstab.qcom
swapon_all /vendor/etc/fstab.zram
# Runtime fs tuning
write /sys/block/sda/queue/read_ahead_kb 128

View File

@ -143,6 +143,10 @@ PRODUCT_PACKAGES += \
FM2 \
qcom.fmradio
# Fstab
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.zram:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.zram
# GPS
PRODUCT_PACKAGES += \
android.hardware.gnss@2.1-impl-qti \