Go to file
Clayton Craft bca632d4f6
postmarketos-base: enable using zram swap by default (MR 3752)
This installs zram-init and sets it to start on boot for all
devices/UIs. The included conf.d/zram-init also allows diabling using
zram swap or overriding the size by using a deviceinfo var.

I did an analysis of the pmos base install size with the 'none' UI
selected, after depending on zram-init, and the following new package is
installed:
        zram-init-11.1-r1 installed size: 40 KiB

These packages are dependencies of zram-init, however they are already
installed in the base image (with 'none' UI) so they are not counted
above:
        util-linux-misc-2.38.1-r0 installed size: 6816 KiB
        e2fsprogs-extra-1.46.5-r4 installed size: 1324 KiB

So this seems like a very small price to pay for the benefit of not
making the logic/implementation more complicated than this.

     * Starting busybox syslog ... [ ok ]
    ssh-keygen: generating new host keys: RSA ECDSA ED25519
     * Starting sshd ... [ ok ]
    zram swap: activating with size: 243 MB
     * Loading zram module...
     [ ok ]
     * Swap->zram0
     [ ok ]
     * Starting local ... [ ok ]

This change introduces one new deviceinfo variable:
deviceinfo_zram_swap_pct: percentage of RAM to use for zram swap

Default percentages if the second var is unset are explained in the
zram-init file this commit adds. A value of 0 disables zram swap.

fixes #1133
2023-01-11 15:39:40 +01:00
.ci CI: shellcheck: include call_audio_idle_suspend_workaround script (MR 3639) 2022-11-28 09:07:52 +01:00
cross cross/binutils-*: upgrade to 2.39-r3 (MR 3798) 2023-01-11 15:24:47 +01:00
device linux-postmarketos-exynos5: use postmarketos-installkernel (MR 3751) 2023-01-10 13:35:59 +01:00
main postmarketos-base: enable using zram swap by default (MR 3752) 2023-01-11 15:39:40 +01:00
modem modem/rmtfs: add tunning partition alias patch for msm8909 Nokia devices (MR 3768) 2022-12-29 18:40:12 +01:00
temp temp/megapixels-purism: bump pkgrel (MR 3771) 2022-12-29 17:47:26 +01:00
.clang-format
.ecrc
.editorconfig
.gitignore CI: wiki: adjust for 'pmbootstrap ci' (MR 3608) 2022-11-17 19:10:56 +01:00
.gitlab-ci.yml CI: implement distfile-check as python test (MR 3608) 2022-11-17 19:10:56 +01:00
.mrhlpr.json
channels.cfg channels.cfg: mark v22.12 as released 2022-12-22 23:31:12 +01:00
CODEOWNERS CODOWNERS: Add @Grimler for exynos5 kernel and tablets (MR 3680) 2022-11-29 21:25:14 +02:00
LICENSE
pmaports.cfg pmaports.cfg: add supported_heimdall_depends 2022-11-16 08:45:07 +01:00
README.md