From 3d84d40699b7b8a7175377d89391cb82aed3a401 Mon Sep 17 00:00:00 2001 From: Stefan Hansson Date: Thu, 19 Feb 2026 09:10:00 +0100 Subject: [PATCH] deviceinfo_schema: Document zram_swap_algo Data mostly taken from the wiki. Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4352 Signed-off-by: Stefan Hansson Part-of: --- deviceinfo_schema.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deviceinfo_schema.toml b/deviceinfo_schema.toml index 0c26435b9..a3a989d17 100644 --- a/deviceinfo_schema.toml +++ b/deviceinfo_schema.toml @@ -108,6 +108,12 @@ description = "Set recommended swap file size for device." datatype = "integer" integer_interval = "[1, 1000000]" +[variable.metadata.zram_swap_algo] +description = "The compression algorithm to be used for zram-based swap." +datatype = "enumeration" +enum_values = ["lzo-rle", "lzo", "lz4", "lz4hc", "zstd", "deflate", "842"] +default_value = "zstd" + [variable.metadata.zram_swap_pct] description = "The size of the ZRAM swap is based on a percentage of the device's RAM, this allows overriding the default percentage to use in the calculation. If set to 0, ZRAM swap is disabled for the device." datatype = "integer"