No description
Find a file
Clayton Craft 5971d0f226
main/postmarketos-usb-moded: use a generator to configure UID/GID for umtprd
MTP transfers write files to the home folder of the user.
If no GID and UID are specified, uMTP-responder will use the GID/UID
under which it is running at the time of the file transfer.
This causes users to not be able to access the files on the device after transfering.

This patch adds a systemd generator that:

1) reads /etc/default_user, and appends config to
   /etc/umtprd/umtprd.conf to set the MTP default user/group. If this
   file doesn't exist, 10000:10000 is the fallback uid:gid.
2) installs this config to /run/umtprd/umptrd.conf
3) adds a unit override to /run for umtprd.service that runs the daemon
   with this modified config

The generator is used instead of hardcoding a uid and gid in umtprd.conf
so that this can support immutable installs or situations where the
default UID/GID is not 10000.

Co-authored-by: Dylan Van Assche <dylan@postmarketos.org>
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7658>
2026-01-05 10:15:18 +00:00
.ci main/postmarketos-usb-moded: use a generator to configure UID/GID for umtprd 2026-01-05 10:15:18 +00:00
.githooks githooks/pre-commit: remove file size check 2025-12-22 23:53:09 +00:00
.gitlab/issue_templates gitlab/issue_templates: mark v25.12 as released 2025-12-23 14:26:08 +01:00
.well-known well-known/funding-manifest-urls: new file (MR 6074) 2025-01-20 18:59:41 +01:00
cross cross/systemd-boot-x86: fix build without libintl 2025-12-23 12:10:05 +00:00
device soc-qcom-sc7180: change maintainers 2026-01-04 18:44:28 +00:00
docs docs: allow TCs to backport to stable releases 2025-12-25 23:32:43 +00:00
extra-repos/systemd systemd/gdm: upgrade to 49.0.1 2026-01-01 19:46:43 -08:00
main main/postmarketos-usb-moded: use a generator to configure UID/GID for umtprd 2026-01-05 10:15:18 +00:00
modem {main,modem,device/community}: add missing maintainer lines 2026-01-03 18:36:33 +00:00
temp temp/usb-moded: use version schema from Alpine 2025-12-30 12:34:07 +00:00
.clang-format Add .clang-format file (!465) 2019-06-26 22:36:15 +02:00
.ecrc CI: .ecrc: Exclude temp from check (MR 4858) 2024-02-27 08:24:53 -08:00
.editorconfig editorconfig: use spaces instead of tabs for markdown 2025-11-05 11:21:30 +00:00
.gitignore docs: add auto-generated deviceinfo reference 2025-11-23 20:26:30 +00:00
.gitlab-ci.yml CI: don't deploy docs from scheduled pipelines 2025-11-30 16:47:54 +01:00
.mailmap */*: update my email address 2025-08-09 12:10:16 +02:00
channels.cfg channels.cfg: mark v25.12 as released 2025-12-23 13:55:12 +01:00
COMMITSTYLE.md editorconfig: use spaces instead of tabs for markdown 2025-11-05 11:21:30 +00:00
kconfigcheck.toml kconfigcheck: add USB FunctionFS 2025-12-27 22:44:28 -08:00
LICENSE Add GPLv3 again 2018-08-23 21:44:22 +02:00
pmaports.cfg pmaports.cfg: Bump pmbootstrap minimum version to 3.8.0 2025-12-30 12:54:53 +00:00
README.md docs: add review and merging guidelines specific to pmaports 2025-09-25 19:55:33 +00:00

postmarketOS aports repository

This repository contains the APKBUILD files for postmarketOS-specific packages, along with the required patches and scripts, if any.

There are many more packages defined in the Alpine Linux aports on which these packages depend.

Helpful resources:

Git Hooks

You can find some useful git hooks in the .githooks directory. To use them, run the following command after cloning this repository:

git config --local core.hooksPath .githooks