]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: Fix a check for CopyBlocks on data partition
authorValentin David <me@valentindavid.com>
Mon, 18 Sep 2023 19:01:52 +0000 (21:01 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 18 Sep 2023 23:53:29 +0000 (00:53 +0100)
The check was verifying that the verity partition had CopyBlocks set instead of
the associated data partition.

src/partition/repart.c

index 773874021d59675246421ed94e377ce1eb70b7e5..6cadc5f66835478837a098fb367953fc365b7439 100644 (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=");