Commit Graph
100 Commits
Author SHA1 Message Date
Clayton Craft 236204b51f main/postmarketos-install-recommends: set Clayton as maintainer
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8287>
2026-04-06 22:09:05 +00:00
Clayton Craft 6b903686d4 main/postmarketos-install-recommends: upgrade to 0.3
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8287>
2026-04-06 22:09:05 +00:00
Clayton Craft e1317493c6 main/postmarketos-base-ui: proximity and accel sensor support
This is hopefully temporary. The proximity and accelerometer sensor tags
were removed upstream(1) citing an open issue on a specific device
and the desire to have more testing. Enabling it in pmOS will help get testing.

This udev rule shouldn't have any impact on devices that don't have
fastrpc. Installing it conditionally on iio-sensor-proxy just seems adds
packaging complexity for basically no benefit.

1. https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/commit/a9d7ff148cd4fa5e40b23b189894b36dd81f51df

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:10 +00:00
Clayton Craft d65edea0ee temp/iio-sensor-proxy: drop fork
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:06 +00:00
Clayton Craft 9246ff8172 linux-postmarketos-asahi: upgrade to 6.19.11-1
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8271>
2026-04-04 04:21:27 +00:00
Clayton Craft b75f4a118b linux-google-crosshatch-mainline: revert: build with LLVM and sync kconfig
This partially reverts commit 3fad2cf8df

This kernel is too old to build with clang/llvm

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8264>
2026-04-03 08:08:04 +02:00
Clayton Craft 40a5c82049 systemd/systemd: add patches to fix sysupdate issues
These patches are merged (or submitted) upstream and not in a release
yet.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8261>
2026-04-02 13:31:46 -07:00
Clayton Craft 71c5137654 systemd/dbus-broker: skip tests on all archs except x86_64
Some tests under qemu take >10minutes each and time out. x86_64 is the
only arch that's native in gitlab CI AND bpo, so only run tests if on
that arch.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
[ci:skip-build]: already built successfully in CI (except aarch64,
 because runners are broken currently)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8246>
2026-03-30 15:38:09 -07:00
Clayton Craft 7143cf4f51 systemd/postmarketos-base-systemd: depend on dbus-broker
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8223>
2026-03-30 21:30:49 +00:00
Clayton Craft 08c6345879 systemd/dbus-broker: fork aport from Alpine to support systemd
This enables launcher support so that dbus-broker can run dbus services
via systemd units (either packaged units, or as a transient unit). The
benefit of doing this is that we no longer have to use a setuid binary
(dbus-daemon-launch-helper).

Fixes https://gitlab.postmarketos.org/postmarketOS/duranium/-/work_items/40

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8223>
2026-03-30 21:30:49 +00:00
Clayton Craft 4c89aa7dc7 linux-postmarketos-asahi: upgrade to 6.19.10-1
Asahi fragment synced with upstream

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8233>
2026-03-28 15:16:44 +00:00
Clayton Craft 465764ee31 device-apple-mac-aarch64: add dwc3-apple module to initramfs
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8233>
2026-03-28 15:16:44 +00:00
Clayton Craft 7d77c762fb linux-postmarketos-asahi: upgrade to 6.19.9-2
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8229>
2026-03-25 16:37:32 -07:00
Clayton Craft 324d7b1385 deviceinfo_schema: update reference to configfs mount point
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 97d87482ba temp/usb-moded: update configfs mount point
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 278d75c7d1 device/downstream/samsung-*: update configfs mount pt in initramfs hook
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 0a1cf811db main/postmarketos-usb-moded: improve systemd unit override
This changes the override to:

1) use /sys/kernel/config for the configfs location
2) depend on the sys-kernel-config.mount unit, which will automatically
mount configfs
3) depend on modprobing libcomposite
4) create the g1/configs/c.1 path automatically in case it's not created
yet

The configfs.ini file is also updated with the path

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 24184654b2 main/postmarketos-initramfs: change configfs mount point
This matches the path that systemd's sys-kernel-config.mount unit uses,
and imho it's a lot nicer to tuck the mount point under /sys/kernel
(like for debugfs) than to have it in /

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft d2ad485b51 systemd/systemd: disable BPF
Not all kernels have CONFIG_DEBUG_INFO_BTF=y, which means we can hit a
deadlock on boot if this is enabled. I haven't seen or heard of anyone
hitting this on mutable pmOS, since /boot is IIRC mounted via fstab,
but this is hit in Duranium where /boot is mounted on-demand via a
boot.automount unit

Since CONFIG_DEBUG_INFO_BTF isn't enabled broadly, enabling BPF support
in systemd probably doesn't make any sense for now?

See:
- https://github.com/systemd/systemd/issues/41162
- https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4411

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8198>
2026-03-20 06:32:51 +00:00
Clayton Craft f935f6329b systemd/systemd-stage0: upgrade to 260
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8198>
2026-03-20 06:32:51 +00:00
Clayton Craft de93133170 systemd/systemd: upgrade to 260
This also adds some helper functions to finding dlopened dependencies.
They're printed out during package(), and useful for figuring out which
packages to depend on when adding dependencies manually to the APKBUILD.
They're also quite gross (e.g. invoking apk) so it's commented out by
default.

Trigger change is because `reload-or-restart ---marked` is now
deprecated:

    * --marked is deprecated. Please use 'systemctl enqueue-marked' instead.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8198>
2026-03-20 06:32:51 +00:00
Clayton Craft f6a9e0e277 systemd/postmarketos-base-systemd: update list of maintainers
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8162>
2026-03-14 14:46:15 +00:00
Clayton Craft 0f0b8ceaa2 main/postmarketos-zram: override vm.min_free_kbytes if >= 1GB RAM
Without a sufficient vm.min_free_kbytes value, the kernel may not start
reclaiming memory early enough to make use of zram swap before the
kernel OOM killer fires. Set a minimum of 100000 KB on devices with >=
1GB of RAM where the kernel's calculated value is lower.

This ignores devices with <1GB of RAM, because I think with so little
RAM isn't unlikely to really matter and if we set this too high then we
risk insta-OOMs.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8157>
2026-03-12 15:55:24 +00:00
Clayton Craft b383547b54 systemd/postmarketos-base-systemd: lower system limit for journald
This sets the max disk space used by journald logs to 1GB (systemd
default is 4GB). This seems like a good trade-off between having access
to more older logs in case there are transient issues that need debug
or we need to understand system behavior long term, and not filling too much
space on devices with little storage.

If a device is really constrained for space, the device package
can ship an override file in journald.conf.d to lower this limit
even further. Users/system admins can also override this value in
/etc/systemd/journald.conf.d.

Fixes #4389

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8156>
2026-03-12 15:51:58 +00:00
Clayton Craft 3df5cc176b docs: document kconfig fragment usage for kernel maintainers
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7606>
2026-03-11 17:27:20 -07:00
Clayton Craft 5d3d7cebcf systemd/systemd: enable initrd units
For using systemd in the duranium initramfs. This should have no impact
on mutable pmOS, other than some extra (unused) units being installed
in the rootfs. This does not switch mutable pmOS to using systemd in
the initramfs.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8125>
2026-03-11 07:36:50 +00:00
Clayton Craft d56116026b systemd/systemd: Replace maintainers Jane & Casey with Clayton & Achill
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8153>
2026-03-10 22:34:17 +00:00
Clayton Craft 853fdfd2a5 linux-postmarketos-asahi: upgrade to 6.18.15
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8115>
2026-03-02 20:10:25 +00:00
Clayton Craft cb0d645970 soc-qcom: restart modem-gnss.service on failure
Apparently starting after MM isn't always enough time for the location
service to be up, so this adds a periodic restart of the systemd service
every 30 seconds for up to 5 minutes.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8041>
2026-02-20 01:19:12 +00:00
Clayton Craft ca40e89754 linux-postmarketos-asahi: upgrade to 6.18.10
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8037>
2026-02-19 06:39:54 +00:00
Clayton Craft b32fe382a8 device-shift-axolotl: disable quiet in kernel cmdline
Console enabled to workaround a race condition with display init
See https://gitlab.freedesktop.org/drm/msm/-/issues/46

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7995>
2026-02-16 20:41:33 +00:00
Clayton Craft c40652c84b main/postmarketos-initramfs: fix subpartition counting with MBR
bb's fdisk prints the table in a different format when using MBR, this
fixes it to correctly count partitions in both cases.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8008>
2026-02-14 00:55:22 +00:00
Clayton Craft c4832ed456 main/postmarketos-initramfs: fix subpartition mount on split initramfs
I shouldn't have used parted here... it's not available in the 1st stage
initramfs. Busybox's fdisk can also list subpartitions so let's use
that instead.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7998>
2026-02-12 15:04:48 -08:00
Clayton Craft 6dfc392214 linux-postmarketos-qcom-sdm845: enable immutable config
[ci:skip-kconfigcheck] will be replaced by pma!7451 at some point

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7997>
2026-02-12 21:06:37 +00:00
Clayton Craft 86bdb82116 main/postmarketos-initramfs: use loop device for subpartitions
This reworks the subpartition init to use loop devices instead of
kpartx/dm mappings. This allows us to use the same logic for resizing
as we do for other partitioning schemes (and refactors that code a bit).
This also helps duranium, because systemd tooling (repart, sysupdate,
gpt-auto-generator) can't properly handle GPT subpartitions exposed via
kpartx dm mappings, but works correctly with loop devices created with
partition scanning enabled.

After this change, subpartitions show up as loop devices, e.g.:

$ ls /dev/loop*
/dev/loop0p1
/dev/loop0p2

There *should* be no impact to existing installs.

This also drops the dependency on multipath-tools, which seems to have
been added years ago as a workaround for installing kpartx (like maybe
multipath-tools used to provide kpartx?), see 7573f5fce4. Anyways, we
don't use anything in this pkg in the initramfs AFAIK.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7932>
2026-02-11 19:22:40 +00:00
Clayton Craft 47b975272a main/postmarketos-mkinitfs: upgrade to 2.9.0
Includes a fix for a regression in 2.8.0

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7986>
2026-02-11 14:55:16 +00:00
Clayton Craft 8341bcd3e3 main/boot-deploy: upgrade to 0.23.0
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7986>
2026-02-11 14:55:16 +00:00
Clayton Craft 4a4130e7a4 Revert "main/postmarketos-mkinitfs: upgrade to 2.8.0"
There's a bug that breaks booting on android devices, needs
investigation. In the meantime, revert this!

This reverts commit 0e7cc643c6.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7985>
2026-02-10 08:47:20 -08:00
Clayton Craft 0e7cc643c6 main/postmarketos-mkinitfs: upgrade to 2.8.0
Fixes !7949

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7980>
2026-02-10 14:30:59 +00:00
Clayton Craft 550ca9908b deviceinfo: mark generate_systemd_boot as obsolete
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7949>
2026-02-09 14:25:54 -08:00
Clayton Craft b1ba6759d6 device/*: drop deviceinfo_generate_systemd_boot variable
fixes # 4299

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7949>
2026-02-09 14:22:57 -08:00
Clayton Craft 5dea9f8b16 device-google-sargo: add support for u-boot
This allows booting pmOS from u-boot on existing and new installs.

Setting the boot partition to vfat isn't strictly necessary (ext2 seems
to work OK), but IIUC either FAT is in the EFI spec or it's what
everyone else uses. We made a similar patch to the OP6/OP6T previously.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7961>
2026-02-09 03:37:59 +00:00
Clayton Craft 9e99265e87 linux-postmarketos-qcom-sdm670: sync kconfig with toml
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7961>
2026-02-09 03:37:59 +00:00
Clayton Craft b796ff9322 linux-postmarketos-qcom-sdm670: add uefi kconfig
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7961>
2026-02-09 03:37:59 +00:00
Clayton Craft e59123dde6 linux-postmarketos-asahi: upgrade to 6.18.8-1
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7954>
2026-02-08 17:28:44 +00:00
Clayton Craft 67ece34776 main/bootmac: upgrade to 0.7.1
This release fixes a race bug when setting wifi MAC addr on boot

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7944>
2026-02-07 23:56:13 +00:00
Clayton Craft 067580ed29 ci/qcom-devicepkg-bootimg: configure job to only run manually, ignore failure
The hw CI isn't stable yet, if a platform is entirely offline (e.g.
because we only have 1 device in CI and it's down for maint.) then the
test job is "pending" for a verrrry long time (16hrs+). mrtest (for
example) is then unable to be used on the MR because the pipeline is
not "success."

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7943>
2026-02-06 19:27:12 +00:00
Clayton Craft 8d85538af3 device-oneplus-fajita: add support for u-boot
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7893>
2026-02-06 18:36:08 +00:00
Clayton Craft 5a8c39b558 linux-postmarketos-qcom-sc7280: enable uefi kconfig check
This also enables some stuff missed in the previous attempt to enable
UEFI support (!7906)

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7914>
2026-02-03 21:03:45 +00:00
Clayton Craft 9ee1b6864d device-fairphone-fp5: add systemd-boot to support u-boot
This will make images built for the fp5 work with both android
bootloader and uboot.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7913>
2026-02-03 19:17:23 +00:00
Clayton Craft 6d63aa2f1c main/boot-deploy: upgrade to 0.22.1
Changelog:

 Fixes:

 * sd-boot: Install drivers under upper-case path

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7912>
2026-02-03 12:10:00 +00:00
Clayton Craft cee04caeaf linux-postmarketos-asahi: upgrade to 6.18.7-2
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7901>
2026-02-03 09:27:36 +00:00
Clayton Craft 84cac35407 main/postmarketos-base-ui: add ModemManager config override
We used to use this param when the MM systemd unit was vendored in
pmaports but it was dropped when we switched to the upstream unit. This
also sets the param in openrc installs.

Fixes #4194

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7840>
2026-02-01 13:17:40 -08:00
Clayton Craft 920c4a8478 soc-qcom: remove MM config
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7840>
2026-02-01 13:17:40 -08:00
Clayton Craft a042b2080d device-purism-librem5: remove MM config
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7840>
2026-02-01 13:17:39 -08:00
Clayton Craft ab80136a3e device-pine64-pinephonepro: remove MM config
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7840>
2026-02-01 13:17:39 -08:00
Clayton Craft 6975af2fe9 device-pine64-pinephone: remove MM config
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7840>
2026-02-01 13:15:28 -08:00
Clayton Craft e399d48234 systemd/pmos-base-systemd: update preset for pipewire/pipewire-pulse
With a recent aports patch[1], unit files are now in aports, however
socket activation is not enabled since that depends on libsystemd.
Instead, we'll just start the units on user session start. I think most
UIs/devices are going to want audio fairly early and often, so I think
it's fine to just start this stuff and is a reasonable price to pay for
being able to avoid having a package fork of pipewire in pmaports.

1. https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/96828

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7894>
2026-02-01 06:04:42 -08:00
Clayton Craft 5d96898b6c systemd/pipewire: drop aport
Unit files were added to the upstream aports pkg.

pw and pw-pulse are no longer socket activated with this change, because
that requires linking against libsystemd(which isn't enabled upstream),
but I think that's worth avoiding all of the packaging complexity of
having a pipewire pkg fork in pmaports.

Fixes #4279

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7894>
2026-02-01 06:03:50 -08:00
Clayton Craft 1720ed803b device-oneplus-enchilada: add systemd-boot, set fat32 for boot partition
This allows building images that support both Android bootloader and
u-boot/EFI bootloader.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7870>
2026-01-29 19:47:37 +00:00
Clayton Craft fe0e70f1dc main/boot-deploy: upgrade to 0.22.0
Changelog:

* sd-boot: install EFI app under upper-case path
* check linux.efi explicitly for bls spec
* Remove sd-boot deviceinfo var
* Always skip flashing boot when using EFI

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7872>
2026-01-29 11:17:55 -08:00
Clayton Craft 49ef561fcb systemd/polkit: fix permissions on rules.d
This is a downstream port of:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/96251

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7813>
2026-01-29 10:21:45 +00:00
Clayton Craft a2de76572d linux-postmarketos-lts: replace linux-lts
fixes:

> ERROR: linux-postmarketos-lts-6.12.67-r0: trying to overwrite usr/share/kernel/lts/kernel.release owned by linux-lts-6.12.28-r0.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7861>
2026-01-27 13:55:48 -08:00
Clayton Craft 0648d45d76 device/*: migrate device packages to new kernel cmdline config system
This migrates all device package to the new system, which is documented
here: https://docs.postmarketos.org/pmaports/main/kernel-cmdline.html.

It also replaces old initramfs params (PMOS_NOSPLASH and
PMOS_FORCE_PARTITION_RESIZE) from the cmdlines with their modern
equivalents, so we can finally get rid of those.

Signed-off-by: default avatarClayton Craft <craftyguy@postmarketos.org>

[ci:skip-build]: already built successfully in CI

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
2026-01-27 12:34:40 -08:00
Clayton Craft f68c270d4d ci/deviceinfo_linting: only line deviceinfo files in the devices repo
If devicepkg-dev changes, we don't want to lint the test deviceinfo
files there...

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
2026-01-27 12:33:06 -08:00
Clayton Craft 382cd1dee1 docs: kernel-cmdline: clarify handling of config for multiple kernels
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
2026-01-27 12:33:05 -08:00
Clayton Craft ae000d30f8 main/devicepkg-utils: remove cmdline_append from example deviceinfo
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
2026-01-27 12:33:05 -08:00
Clayton Craft 5f04b534f7 main/devicepkg-dev: support installing kernel-specific cmdline config
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
2026-01-27 12:33:05 -08:00
Clayton Craft 43109bb7fd main/dint: upgrade to 0.0.7
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
2026-01-27 12:33:05 -08:00
Clayton Craft 080500fffd linux-postmarketos-asahi: upgrade to 6.18.7-1
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7839>
2026-01-25 22:33:01 -08:00
Clayton Craft a3ee13fb36 device-alcatel-ttab: fix mtk_label_* deviceinfo vars
These variables were renamed and I guess this package was missed.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7835>
2026-01-24 22:23:35 +00:00
Clayton Craft 24bdbf5675 linux-postmarketos-asahi: upgrade to 6.18.6
And sync kconfig!

This also removes the .config fragments from sources= since they are not
actually used for building the kernel.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7831>
2026-01-24 22:15:37 +00:00
Clayton Craft b170f85c36 device-lenovo-lxf-p5100: move kernel cmdline config to kernel-cmdline.d
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

[ci:skip-build]: build succeeded on all archs except riscv64, which is
failing because of an upstream/aports sync issue.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:07:15 -08:00
Clayton Craft b081d3a09d device-qemu-*: move kernel cmdline config to kernel-cmdline.d
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:43 -08:00
Clayton Craft cbc7941d0c device-lenovo-21bx: move kernel cmdline config to kernel-cmdline.d
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:41 -08:00
Clayton Craft 6b1450424c device-apple-mac-aarch64: drop kernel cmdline from deviceinfo
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:20 -08:00
Clayton Craft 2d9bbc368d ci: hardcode ci-tron DUT kernel cmdline
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:19 -08:00
Clayton Craft dbc0b37449 main/boot-deploy: depend on generate-kernel-cmdline
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
[ci:ignore-count]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:19 -08:00
Clayton Craft a80206516e docs/kernel-cmdline: add docs for new kernel cmdline system
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:19 -08:00
Clayton Craft 51ed081129 main/postmarketos-base: install default kernel cmdline
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:19 -08:00
Clayton Craft 9a50e8fb55 main/devicepkg-dev: add support for installing kernel-cmdline.conf
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7708>
2026-01-23 15:06:04 -08:00
Clayton Craft 6e2db46651 linux-postmarketos-qcom-laptop: remove *.config fragments from sources
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

[ci:skip-build]: no build test needed for this change

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7798>
2026-01-22 23:41:00 +00:00
Clayton Craft a99216d543 systemd/pipewire: re-sync apkbuild with upstream
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

[ci:skip-build]: all archs built successfully except riscv64 but that's
failing from an Alpine problem

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7809>
2026-01-22 18:54:47 +00:00
Clayton Craft 1fd5acd9b3 Revert "device: oneplus-enchilada/fajita: mask alsa-restore"
This reverts commit d8a5e4622a.

It doesnt' actually work, `mask` is not a valid directive for preset
files.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7797>
2026-01-19 13:01:56 -08:00
Clayton Craft c2c979c44a device-google-x64cros: add emmc/sdhci module for chromebook emmc
Some chromebooks (swanky) need this module when using mrchromebox fw for
emmc to work in the initramfs

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7792>
2026-01-19 00:42:44 +00:00
Clayton Craft 4f2628f8bb main/postmarketos-ui-cosmic: update pmos-base-ui pw audio name
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

[ci:skip-build]: loongarch64 CI runner temporarily broken

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7786>
2026-01-18 12:20:33 +00:00
Clayton Craft 1ca5a1ad58 device/*: update pmos-base-ui-backend-audio-* dependency pkg names
These were changed in 3c2af74036

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7786>
2026-01-18 12:20:33 +00:00
Clayton Craft 3c2af74036 main/postmarketos-base-ui: set defaults for pmb_select
This should fix cases where pw-pulse was being installed by default by
pmbootstrap despite not being selected.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7776>
2026-01-17 14:31:39 -08:00
Clayton Craft ed4088ae33 systemd/postmarketos-base-systemd: oomd: disable swap kill, raise app slice priority
This disables swap-based killing and sets a lower pressure threshold
for user apps in the app slice so they will get killed sooner than other
things (e..g the whole session slice).

Killing based on swap usage was resulting in some sudden kills from
oomd, and upon further investigation is seems like other distros
(ubuntu, fedora) either never enabled this or walked it back due to it
being confusing for users.

The override for app.slice and sets the pressure limit to a value less
than the other slices, in an attempt to fix situations where an app
(e.g. firefox) was creating a ton of pressure and systemd-oomd was
killing the entire UI/session.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7751>
2026-01-17 09:14:13 -08:00
Clayton Craft 8b4f66950c main/postmarketos-base: switch to pmos-zram
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7754>
2026-01-17 16:56:28 +00:00
Clayton Craft 2b4650d9f3 systemd/postmarketos-base-systemd: add preset for zram-swap
And remove preset for zram-init's zram_swap

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7754>
2026-01-17 16:56:28 +00:00
Clayton Craft 49b9e02ddf main/postmarketos-zram: increase default zram factor/size to 150%
This "size"/factor/percentage represents the total amount of
**uncompressed** data that is allowed to be written to the zram-backed
swap device. It is **not** the amount of RAM to use for zram swap (as I
had previously and erroneously thought.) What this means is that if we
set the percent to 50% on a device with 3GB of RAM then up to 1.5GB of
*uncompressed* data can be written to it, BUT since compression algos
usually do better than a ratio of 1:1... less than 1.5GB of RAM will
actually be occupied by this data when it is compressed.

A 1.5:1 compression ratio seems relatively safe to assume, even if we
use lz4 (which is less "good" at compressing than zstd), so I propose we
set the size to 150%. Some distros (PureOS) set this higher (200%), but
I think we should be somewhat conservative since we want to avoid any
thrashing in case the compression ratio at runtime ends up being less
than 2:1 for some reason.

This does set a limit of 50% for devices with >32GB of RAM, to
reduce overhead with using a larger amount of zram swap. The kernel
documentation for zram suggests there's a 0.1% overhead, so if we let
this amount get large then it could be tens or hundreds of MB of RAM
"wasted." The amount I chose is kinda arbitrary, I think this can be
improved later. At the very least, users can change this amount in the
deviceinfo variable.

Fixes #4250

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7754>
2026-01-17 16:56:28 +00:00
Clayton Craft 7aee3f6f58 main/postmarketos-zram: new aport
This is meant to replace zram-init. It's much simpler, since it only
sets up zram swap and doesn't try to do all the things that zram-init
does. This also lets us add additional logic, such as selecting
different default algorithms based on the runtime CPU arch and
conditionally applying sysctl settings that might be inappropriate when
*not* using zram swap.

To create zramstart, I took the zram-configurator, which reads config
from deviceinfo vars, and extended it to create the zram swap device.

zramstart and zramstop were inspired by what Fedora does. The sysctl
config is from the work done here:
https://source.puri.sm/Librem5/librem5-base/-/merge_requests/381

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7754>
2026-01-17 16:56:28 +00:00
Clayton Craft 3dfbc72312 systemd/qemu-binfmt: drop aport
This config is packaged upstream:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/95870

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7755>
2026-01-17 00:47:35 +00:00
Clayton Craft d78576fadb main/boot-deploy: upgrade to 0.21.2
Changelog: https://gitlab.postmarketos.org/postmarketOS/boot-deploy/-/tags/0.21.2

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7760>
2026-01-14 23:13:42 +00:00
Clayton Craft 3a74f3a1de kconfigcheck: enable all compression backends for zram
It doesn't seem like enabling these will "cost" us anything, and
making sure they are enabled will let us more easily change the default
compressor for zram swap in the future.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7753>
2026-01-14 21:59:26 +00:00
Clayton Craft 67e26581a9 main/boot-deploy: upgrade to 0.21.1
Changelog: https://gitlab.postmarketos.org/postmarketOS/boot-deploy/-/tags/0.21.1

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7759>
2026-01-14 10:24:19 -08:00
Clayton Craft 7eb29052fa main/postmarketos-base: add Achill and Clayton as maintainers
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7733>
2026-01-13 20:00:02 +00:00
Clayton Craft 8326df65f8 main/boot-deploy: upgrade to 0.21.0
Changelog: https://gitlab.postmarketos.org/postmarketOS/boot-deploy/-/tags/0.21.0

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7732>
2026-01-13 12:09:26 +00:00
Clayton Craft 96d714f167 main/postmarketos-base-ui: delay starting flatpak helper
This is a workaround for https://github.com/flatpak/flatpak/issues/6449

By requiring that system time is sync'd with NTP before the flatpak
helper is started, we can make sure that system time is always greater
than the flathub.org repo gpg key creation time, and prevent the
helper/flatpak from creating broken repo config that requires manual
intervention to fix.

Fixes #3816

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7711>
2026-01-12 19:41:19 +00:00