]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect-image: turn verity device sharing into opt-in
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Sep 2025 15:57:37 +0000 (17:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Oct 2025 20:13:53 +0000 (22:13 +0200)
commit57d1ceffb3d98f69c2da511ed59a420a1cfa7e40
tree3b05f50dfe298d4ec90c35ebd4723385d72bbea4
parent675fa49f69943b0f009c973ed3d1e90afc1d88b1
dissect-image: turn verity device sharing into opt-in

Sharing verity volumes is problematic for a veriety of reasons, for
example because it might pin the wrong backing device at the wrong time.

Let's hence turn this around: unless verity sharing is enabled, leave it
off, and turn $SYSTEMD_VERITY_SHARING into a true boolean that can be
set both ways.

The primary usecase for verity sharing is RootImage=, where it probably
makes sense to leave on, hence set the flag there.

This is crucial when putting together installers which install an OS on
a second disk: if verity sharing is always on we might mount the wrong
of the two disks at the wrong time.
docs/ENVIRONMENT.md
src/core/namespace.c
src/shared/dissect-image.c
test/units/TEST-50-DISSECT.dissect.sh