diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index 53d2ea94de9de1d890f0a76c14b8309414ecc5d5..8d0a23bdcd2c24ada3a4b355412c62a95ba780b3 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -14,5 +14,6 @@ /dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect /dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait -/devices/platform/soc/7864900.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd +/devices/platform/soc/7864900.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd /devices/platform/soc/7000000.ssusb/7000000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto +/dev/block/zram0 none swap defaults zramsize=60% diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 98fd78e88543563a7751af59958979b3f6b5eee5..0ff87e922e1f654b42d627fd4b7d458ca03f95bb 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -408,6 +408,7 @@ on post-fs-data #Create SWAP related dirs mkdir /data/vendor/swap 0770 root system chmod 2770 /data/vendor/swap + swapon_all /vendor/etc/fstab.qcom # set aggressive read ahead for dm-0 and dm-1 during boot up write /sys/block/dm-0/queue/read_ahead_kb 2048