zram: Ensure 1.5 GB free space before creating zram backing device

fs_mgr follows system property 'ro.zram_backing_device_min_free_mb'
to check available space before creating zram backing device.

Previously, in Repair Mode, it requires at least 2 GB to boot
successfully with 512 MB zram backing device size. So we can set
1.5 GB as the minimum threshold.

Bug: 322821637
Bug: 326877642
Test: Fill up userdata, enlarge zram backing device size on next
boot.
Test: Boot to Repair Mode
Flag: EXEMPT bugfix

Change-Id: I16c6f1649181af94347b4534c790522bfd2fc166
This commit is contained in:
Richard Chang 2024-07-30 08:36:47 +00:00
parent 826a8afe4c
commit bf04670197

View file

@ -1,3 +1,7 @@
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/performance/sepolicy BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/performance/sepolicy
PRODUCT_PACKAGES += dump_perf PRODUCT_PACKAGES += dump_perf
# Ensure enough free space to create zram backing device
PRODUCT_PRODUCT_PROPERTIES += \
ro.zram_backing_device_min_free_mb=1536