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.
This commit is contained in:
Valentin David
2023-09-19 00:53:29 +01:00
committed by Luca Boccassi
parent eed99fe995
commit 5a77fbb81f
+1 -1
View File
@@ -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=");