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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user