Skip to content
Snippets Groups Projects
Unverified Commit 897dd2b8 authored by Casey's avatar Casey :recycle:
Browse files

postmarketos-initramfs: fix device mapper path on android devices with subpartitions (MR 5632)


On android devices using subpartitions, during boot we set up the
subpartitions so the rootfs is /dev/mapper/userdata2, however during
resize_root_partition() we resolve the original block device (e.g. sda17
on the op6) and re-create the device mapper. This results in the cached
rootfs path being wrong (since after resize it's created as
/dev/mapper/sda17p2).

Cache the subpartition source device so we re-create it to be
consistent. Otherwise the filesystem resize fails and the device drops
to debug shell on first boot.

Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
parent cd3e041b
No related branches found
No related tags found
No related merge requests found
Pipeline #205949 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment