diff options
author | Valentin David <me@valentindavid.com> | 2023-09-18 21:01:52 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-09-19 01:53:29 +0200 |
commit | 5a77fbb81fa1b3c98b21d1277efee1d83ecbb963 (patch) | |
tree | c7d3af7e45bd4b4f3d281e06201be552a9192794 /src/partition/repart.c | |
parent | systemd.time.7: rewrite Parsing Timestamps section (diff) | |
download | systemd-5a77fbb81fa1b3c98b21d1277efee1d83ecbb963.tar.xz systemd-5a77fbb81fa1b3c98b21d1277efee1d83ecbb963.zip |
repart: Fix a check for CopyBlocks on data partition
The check was verifying that the verity partition had CopyBlocks set instead of
the associated data partition.
Diffstat (limited to '')
-rw-r--r-- | src/partition/repart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c index 773874021d..6cadc5f668 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -2195,7 +2195,7 @@ static int context_read_definitions(Context *context) { assert_se(dp = p->siblings[VERITY_DATA]); - if (dp->minimize == MINIMIZE_OFF && !(p->copy_blocks_path || p->copy_blocks_auto)) + if (dp->minimize == MINIMIZE_OFF && !(dp->copy_blocks_path || dp->copy_blocks_auto)) return log_syntax(NULL, LOG_ERR, p->definition_path, 1, SYNTHETIC_ERRNO(EINVAL), "Minimize= set for verity hash partition but data partition does " "not set CopyBlocks= or Minimize="); |