From f6cfae4ae87fc596413ad0d6b22915041b486b90 Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Thu, 21 Oct 2021 17:08:35 +0200 Subject: [PATCH] sm7125: Add fstab.sqzr Change-Id: I82e628ff00f2f27f52f702f3303ce03fccf14d5a --- common.mk | 1 + rootdir/Android.mk | 8 ++++++++ rootdir/etc/fstab.sqzr | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 rootdir/etc/fstab.sqzr diff --git a/common.mk b/common.mk index 9a6eb68..fa3d0ed 100644 --- a/common.mk +++ b/common.mk @@ -34,6 +34,7 @@ AB_OTA_UPDATER := false PRODUCT_PACKAGES += \ fstab.default \ fstab.default.ramdisk \ + fstab.sqzr \ init.a52q.rc \ init.qcom.factory.rc \ init.qcom.rc \ diff --git a/rootdir/Android.mk b/rootdir/Android.mk index d4782ea..d7ac62a 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -20,6 +20,14 @@ LOCAL_SRC_FILES := etc/fstab.default LOCAL_MODULE_PATH := $(TARGET_RAMDISK_OUT) include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := fstab.sqzr +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/fstab.sqzr +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) +include $(BUILD_PREBUILT) + include $(CLEAR_VARS) LOCAL_MODULE := init.a52q.rc LOCAL_MODULE_TAGS := optional diff --git a/rootdir/etc/fstab.sqzr b/rootdir/etc/fstab.sqzr new file mode 100644 index 0000000..5b442ad --- /dev/null +++ b/rootdir/etc/fstab.sqzr @@ -0,0 +1,9 @@ +# Android fstab file. +# +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + +# +# SWAP (SQZR) +/dev/block/zram0 none swap defaults zramsize=2684354560,max_comp_streams=8,zram_backingdev_size=256M +