]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix roothash property handling 1387/head
authorCornelius Hoffmann <coding@hoffmn.de>
Mon, 13 Mar 2023 18:29:31 +0000 (19:29 +0100)
committerCornelius Hoffmann <coding@hoffmn.de>
Mon, 13 Mar 2023 18:36:38 +0000 (19:36 +0100)
mkosi/__init__.py

index 3079e6dbc4827fee440c1008136919a2bda08d2b..3828411b5840aa8a2ba4fce2e2b95c6c2a596680 100644 (file)
@@ -3162,7 +3162,7 @@ def invoke_repart(state: MkosiState, skip: Sequence[str] = [], split: bool = Fal
         if (h := p.get("roothash")) is None:
             continue
 
-        if not p["type"].startswith("usr") or p["type"].startswith("root"):
+        if not (p["type"].startswith("usr") or p["type"].startswith("root")):
             die(f"Found roothash property on unexpected partition type {p['type']}")
 
         # When there's multiple verity enabled root or usr partitions, the first one wins.