From: Cornelius Hoffmann Date: Mon, 13 Mar 2023 18:29:31 +0000 (+0100) Subject: Fix roothash property handling X-Git-Tag: v15~295^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1387%2Fhead;p=thirdparty%2Fmkosi.git Fix roothash property handling --- 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.