From f74480d088b10160b3d2c5b14c70c5056874aa4c Mon Sep 17 00:00:00 2001 From: Cornelius Hoffmann Date: Mon, 13 Mar 2023 19:29:31 +0100 Subject: [PATCH] Fix roothash property handling --- mkosi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 3079e6dbc..3828411b5 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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. -- 2.47.2