]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemd-dissect: do not fail dissection on LUKS v1 partitions
authorNandakumar Raghavan <naraghavan@microsoft.com>
Mon, 4 May 2026 09:31:59 +0000 (09:31 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 5 May 2026 10:54:44 +0000 (11:54 +0100)
commit090f9b5a9587e98243cfe8b23df7694d277ff7c5
treea4f96bfb630f2bd3cc22bc1d45f64f2c2a8460ae
parent45725d6434d552330adfa84d7cf314e1716990d3
systemd-dissect: do not fail dissection on LUKS v1 partitions

partition_is_luks2_integrity() was returning -EINVAL when it
encountered a non-LUKS2 header (e.g. LUKS v1), which caused the
caller to abort the entire disk dissection. A LUKS v1 partition
simply isn't LUKS2-with-integrity, so return 0 instead and let
dissection continue normally.
src/shared/dissect-image.c