sm6150-common: Configure zram from separate fstab
Change-Id: I3d093f06b08ad1cc049325d0136b60cab70c29d0
This commit is contained in:
parent
2df667662f
commit
b2d8bf6c26
4
rootdir/etc/fstab.zram
Normal file
4
rootdir/etc/fstab.zram
Normal 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
|
@ -54,7 +54,7 @@ on init
|
|||||||
write /sys/block/sde/queue/nr_requests 256
|
write /sys/block/sde/queue/nr_requests 256
|
||||||
|
|
||||||
on fs
|
on fs
|
||||||
mount_all --early
|
mount_all --early /vendor/etc/fstab.qcom
|
||||||
|
|
||||||
restorecon_recursive /mnt/vendor/persist
|
restorecon_recursive /mnt/vendor/persist
|
||||||
mkdir /mnt/vendor/persist/data 0700 system system
|
mkdir /mnt/vendor/persist/data 0700 system system
|
||||||
@ -64,7 +64,7 @@ on fs
|
|||||||
on late-fs
|
on late-fs
|
||||||
wait_for_prop hwservicemanager.ready true
|
wait_for_prop hwservicemanager.ready true
|
||||||
exec_start wait_for_keymaster
|
exec_start wait_for_keymaster
|
||||||
mount_all --late
|
mount_all --late /vendor/etc/fstab.qcom
|
||||||
|
|
||||||
on post-fs-data
|
on post-fs-data
|
||||||
mkdir /data/vendor/nnhal 0700 system system
|
mkdir /data/vendor/nnhal 0700 system system
|
||||||
@ -97,7 +97,7 @@ on property:sys.boot_completed=1
|
|||||||
write /proc/sys/vm/swappiness 100
|
write /proc/sys/vm/swappiness 100
|
||||||
|
|
||||||
# Enable ZRAM on boot_complete
|
# Enable ZRAM on boot_complete
|
||||||
swapon_all /vendor/etc/fstab.qcom
|
swapon_all /vendor/etc/fstab.zram
|
||||||
|
|
||||||
# Runtime fs tuning
|
# Runtime fs tuning
|
||||||
write /sys/block/sda/queue/read_ahead_kb 128
|
write /sys/block/sda/queue/read_ahead_kb 128
|
||||||
|
@ -143,6 +143,10 @@ PRODUCT_PACKAGES += \
|
|||||||
FM2 \
|
FM2 \
|
||||||
qcom.fmradio
|
qcom.fmradio
|
||||||
|
|
||||||
|
# Fstab
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/rootdir/etc/fstab.zram:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.zram
|
||||||
|
|
||||||
# GPS
|
# GPS
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.gnss@2.1-impl-qti \
|
android.hardware.gnss@2.1-impl-qti \
|
||||||
|
Loading…
Reference in New Issue
Block a user