pmaports/main/postmarketos-base
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
..
APKBUILD postmarketos-base: enable using zram swap by default (MR 3752) 2023-01-11 15:39:40 +01:00
postmarketos-base-nftables.post-install postmarketos-base: remove UI-specific config/dependencies (MR 2243) 2021-06-23 13:00:00 +02:00
postmarketos-base.post-install postmarketos-base: enable using zram swap by default (MR 3752) 2023-01-11 15:39:40 +01:00
postmarketos-base.post-upgrade main/postmarketos-base: add dummy post-upgrade (MR 1964) 2021-02-17 17:49:58 -08:00
postmarketos-base.pre-upgrade postmarketos-base: remove UI-specific config/dependencies (MR 2243) 2021-06-23 13:00:00 +02:00
postmarketos-base.trigger postmarketos-base: configure getty using deviceinfo_getty variable (!771) 2019-12-07 01:32:23 +01:00
rootfs-etc-conf.d-bootmisc main/postmarketos-base: clear /tmp on boot (MR 2744) 2021-12-19 20:32:43 +03:00
rootfs-etc-conf.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-conf.d-syslog main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-conf.d-zram-init postmarketos-base: enable using zram swap by default (MR 3752) 2023-01-11 15:39:40 +01:00
rootfs-etc-doas.d-10-postmarketos.conf postmarketos-base: replace sudo with cmd:sudo (MR 3721) 2022-12-18 13:23:33 -08:00
rootfs-etc-fstab main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-deferred-initcalls main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-issue main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-motd main/postmarketos-base: update motd for the cheatsheet (MR 1961) 2021-02-21 11:47:07 +01:00
rootfs-etc-os-release main/postmarketos-base: set distro logo in /etc/os-release (MR 2867) 2022-01-21 01:09:59 +00:00
rootfs-etc-sudoers main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-sysctl.d-disable-rp-filter.conf postmarketos-base: add sysctl config to disable rp_filter on ipv4 (MR 2943) 2022-02-16 12:08:24 -08:00
rootfs-lib-udev-rules.d-20-tm2-touchkey-input.rules main/postmarketos-base: modify tm2-touchkey udev rule for midas (MR 3192) 2022-06-09 08:08:41 +02:00
rootfs-lib-udev-rules.d-20-tm2-touchkey-leds.rules main/postmarketos-base: change permission on tm2-touchkey leds (MR 2380) 2021-08-10 00:03:50 -07:00
rootfs-lib-udev-rules.d-20-zinitix-input.rules main/postmarketos-base: udev rule for zinitix touchkey (MR 3015) 2022-03-21 22:25:54 +09:00
rootfs-lib-udev-rules.d-50-firmware.rules main/postmarketos-base: udev tm2-touchkey and rt5033-battery (MR 2330) 2021-07-11 14:10:03 +02:00
rootfs-sbin-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-usr-lib-firmwareload.sh treewide: fix tabs, final newline, trailing whitespace (MR 3530) 2022-10-16 16:27:22 +02:00
rootfs-usr-lib-udev-rules.d-90-feedbackd-regulator-haptic.rules main/postmarketos-base: add regulator-haptic udev rules (MR 3691) 2022-12-07 09:46:19 +01:00