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
2026-02-04 18:46:15 +01:00
2026-01-13 10:41:44 +00:00
2026-01-29 13:47:42 +01:00
2019-06-26 22:36:15 +02:00
2026-01-11 18:52:28 +01:00
2026-01-27 16:59:34 +01:00
2018-08-23 21:44:22 +02: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
S
Description
No description provided
Readme GPL-3.0
95 MiB
Languages
Shell 95.8%
Python 2.5%
C 1.2%
Batchfile 0.3%
Jinja 0.2%