]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: try harder to find verity-sig partitions for CopyBlocks=auto
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Jun 2025 17:27:33 +0000 (19:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Jun 2025 10:37:44 +0000 (12:37 +0200)
commitd3a6606cea2929c209e7da3118dafc8d29b0ce19
treecbd4034f75b70b8c9888f210ac8b35b255df52e2
parent188467dfd9290b7d6246b68fc82ac70436fd6c29
repart: try harder to find verity-sig partitions for CopyBlocks=auto

verity-sig partitions are not kernel concepts, hence dm-verity won't
link them for us from the slaves/ subdir in sysfs. Hence let's instead
look up the partition via udev's database.

Hence: when we search for the data+verity+verity-sig partitions then
search for the first two as usual, but search for the latter by looking
up the udev props on the first two, and then following the paths
provided therein.

Fixes: #34835
src/repart/repart.c