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-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-02-11 14:55:16 +00:00
2026-02-07 23:56:13 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-02-04 15:29:18 +00:00
2026-01-27 12:33:05 -08:00
2026-02-08 18:13:51 +00:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-15 11:15:21 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-23 15:06:19 -08:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2025-11-30 15:50:26 +01:00
2026-02-01 13:17:40 -08:00
2026-01-15 11:05:38 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-28 20:23:52 +01:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-02-11 19:22:40 +00:00
2026-01-12 17:01:35 +01:00
2026-01-15 11:05:38 +00:00
2026-01-03 18:36:33 +00:00
2026-02-11 14:55:16 +00:00
2026-01-15 11:05:38 +00:00
2026-01-15 07:48:41 +00:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-23 17:33:02 +01:00
2026-01-03 18:36:33 +00:00
2026-01-15 11:05:38 +00:00
2026-01-15 11:05:38 +00:00
2026-01-27 15:20:22 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-15 11:05:38 +00:00
2026-01-12 17:01:35 +01:00
2026-01-18 12:20:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-15 11:05:38 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-15 16:52:13 +01:00
2026-01-12 17:01:35 +01:00
2026-01-17 16:56:28 +00:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-02-11 14:18:44 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-11 18:52:28 +01:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-15 11:15:21 +00:00
2026-01-12 17:01:35 +01:00